11

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

sudo apt-get install libncurses5-dev
Radu Rădeanu
  • 174,437
Jake
  • 270

3 Answers3

18

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
Radu Rădeanu
  • 174,437
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.

Braiam
  • 69,302
  • OP didn't mention that raring was being used, it may be better to link to the search result page: http://manpages.ubuntu.com/cgi-bin/search.py?q=ncurses You can also just search using the search box (without changing URLs) – kiri Oct 29 '13 at 02:14
  • @minerz029 the link was intentional, since the documentation haven't changed – Braiam Oct 29 '13 at 04:26
  • For the common case that there is a page for the name in only one section, the URL for the most current version is http://manpages.ubuntu.com/ncurses – Volker Siegel Aug 16 '14 at 18:43
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

MestreLion
  • 20,785
  • I installed these examples but I where can I find their source code? Having the source code would be great for learning ncurses. – builder-7000 Aug 14 '18 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 '18 at 08: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. – builder-7000 Aug 15 '18 at 08: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 '18 at 13:32