How to install curses.h header file (or package including it) on Linux?

I want to use certain operations (for example, screen cleaning, etc.) in programs on the Linux platform, and I am informed that this can be done, including the curses.h header file. But this is not like the gcc package.

Please tell me how to install it?

+7
c curses
source share
3 answers

Try the following:

sudo apt-get install libncurses5-dev 
+23
source share

In RHEL / Fedora / CentOS Linux, enter the following yum command at the command prompt as root:

 yum install ncurses-devel ncurses 
+5
source share

On Debian / Ubuntu / Deepin, use the following command:

sudo apt install libncurses5-dev

man document:

sudo apt install ncurses-doc

then: man ncurses

+1
source share

All Articles