I want to use certain operations (like clearing the screen etc.) in C programs in Linux platform and I am informed that it can be done including curses.h header-file. But this doesn't seem to be available along with gcc package.
Please, tell me how can I install it?
The <curses. h> header provides a declaration for COLOR_PAIRS, COLORS, COLS, curscr, LINES and stdscr.
ncurses (new curses) is a programming library providing an application programming interface (API) that allows the programmer to write text-based user interfaces (TUI) in a terminal-independent manner. It is a toolkit for developing "GUI-like" application software that runs under a terminal emulator.
Try this:
sudo apt-get install libncurses5-dev
On RHEL / Fedora / CentOS Linux, type the following yum command at a shell prompt as root user:
yum install ncurses-devel ncurses
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