10

I can't find the ncurses man pages even after:

sudo apt-get install libncurses5-dev
0

3 Answers 3

17

You have to install also ncurses-doc. To install it from terminal run the following command:

sudo apt-get install ncurses-doc

Then you can read the manual page:

man ncurses
1
  • @Jake: because you, just like me, only looked up on libncurses* packages ;)
    – MestreLion
    Mar 11, 2015 at 10:19
3

You can also get the man page online:

http://manpages.ubuntu.com/ncurses

You can also use this link to search http://manpages.ubuntu.com/cgi-bin/search.py?q=. Just add your search to the end of that address.

3
2

Besides the mentioned ncurses-doc package, don't forget to install the examples!

ncurses-examples Install ncurses-examples

They are priceless... installed at /usr/lib/ncurses/examples and best viewed with dwww

4
  • I installed these examples but I where can I find their source code? Having the source code would be great for learning ncurses. Aug 14, 2018 at 21:42
  • 1
    @Sergio , as with any other Debian package, source code can be found in their source package. Try apt source ncurses-examples, it will download ncurses source package containing all source code. Source for the examples can be found at test/ subfolder.
    – MestreLion
    Aug 15, 2018 at 8:06
  • Thank you, for some reason the apt command didn't work for me, but I installed with: git clone https://github.com/gittup/ncurses.git which includes the test/ folder with the source code for the examples. Aug 15, 2018 at 8:34
  • @Sergio, maybe apt-get source ncurses if you're using an Ubuntu older than 16.04. Yes, cloning the upstream (original author) repository may solve your problem for ncurses, but a general solution for any Ubuntu package is to grab the source package using apt
    – MestreLion
    Aug 15, 2018 at 13:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .