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

Snehasish Karmakar picture Snehasish Karmakar · Aug 16, 2013 · Viewed 57.4k times · Source

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?

Answer

Linuxios picture Linuxios · Aug 16, 2013

Try this:

sudo apt-get install libncurses5-dev