I have a little piece of code for linux terminal capabilities, it uses the term.h header file
#include <stdio.h>
#include <term.h>
#include <curses.h>
#include <stdlib.h>
main()
{
setupterm("unlisted",fileno(stdout),(int*)0);
printf("Done.\n");
}
but when I try to compile it I get fatal error: term.h : No such file or directory
What should I do? Where's the problem
On Ubuntu, download and install the libncurses5-dev:
sudo apt-get install libncurses5-dev
then compile:
gcc my_program.c -o my_program -lncurses
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With