42

Where can I find a complete reference of the ncurses C API?

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
nonpolynomial237
  • 2,109
  • 4
  • 27
  • 35

4 Answers4

29

I found this question a while back, but none of the answers so far answer the original question. The complete freely available API reference is available through the . . .

NCURSES MAN PAGES

learnvst
  • 15,455
  • 16
  • 74
  • 121
  • 1
    sorry, but the word *freely* doesn't appear at all in the original question.. – VP. Feb 17 '15 at 17:04
  • You what? free·ly ˈfrēlē adverb not under the control of another; as one wishes. "I roamed freely" without restriction or interference. "air can freely circulate" – learnvst Feb 17 '15 at 17:26
  • 8
    @VP. What? How does that matter? That's like someone giving an answer that says, "This uses the strategy programming pattern". It's not an invalid answer because the question never mentioned the strategy pattern. – Nic May 07 '16 at 21:38
6

The documentation that comes with the library actually isn't that bad.

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/

wnoise
  • 9,764
  • 37
  • 47
  • @MestreLion: `% tar tvfz ncurses-5.9.tar.gz | grep HOWTO` `-rw-r--r-- tom/wheel 242426 2005-06-21 14:50 ncurses-5.9/doc/html/NCURSES-Programming-HOWTO.html` – wnoise Feb 17 '15 at 04:58
  • 2
    I'm sorry, I did not realize http://tldp.org copied the official HOWTO. Still, it should probably be better to point to the upstream website: http://invisible-island.net/ncurses/howto/NCURSES-Programming-HOWTO.html . – MestreLion Feb 17 '15 at 05:17
  • It may not come with it, in Raspbian there's ncurses-doc and ncurses-examples as separate packages to install. I didn't even have an ncurses man page until that. – Alan Corey Feb 15 '19 at 06:01
4

You can buy this book. I have it and recommend: John Strang, Programming with curses, O'Reilly, ISBN 0-937175-02-1

The best online source information: http://invisible-island.net/ncurses/ncurses-intro.html

I learned a lot about ncurses reading the minicom source code and the iptraf linux network monitor.

VP.
  • 5,122
  • 6
  • 46
  • 71
  • 2
    That online guide is indeed an amazing resource. Just be aware that `ncurses` authors placed it in *"Technically obsolete, but often cited"* category. The guide cited by @wnoise is indicated as current reference. – MestreLion Feb 17 '15 at 05:24
2

I've found the book "Programmer's Guide to nCurses" (Dan Gookin, published by Wiley) invaluable as it includes both tutorial and an impressive reference to the API.

There's also the O'Reilly Nutshell guide "Programming with Curses" which isn't too bad.

paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953