15

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?

yulian
  • 1,601
  • 3
  • 21
  • 49
Snehasish Karmakar
  • 686
  • 1
  • 6
  • 15

3 Answers3

38

Try this:

sudo apt-get install libncurses5-dev
Linuxios
  • 34,849
  • 13
  • 91
  • 116
9

On RHEL / Fedora / CentOS Linux, type the following yum command at a shell prompt as root user:

yum install ncurses-devel ncurses
R S John
  • 507
  • 2
  • 9
  • 16
6

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

sudo apt install libncurses5-dev

man document:

sudo apt install ncurses-doc

then: man ncurses

valleygtc
  • 99
  • 4
  • 4