Source Code from "Programmer Guide to NCurses" by Dan Gookin

by Wojciech Adam Koszek   ⋅   Jul 8, 2015   ⋅   Menlo Park, CA

Dan Gookin did a good job with getting some NCurses examples out in the world, and I've just made it easier to access. If you like to write your own, little crude tools, and do all of this in C, this is a good resource.

Even though I’ve never read Gookin’s book, I’ve noticed that his website tarball with C sources is quite useful, as it contains small self-contained programs. To the sources I’ve added a makefile to make build automated and I’ve fixed programs which weren’t compiling.


For MacOSX I didn’t need anything. For Ubuntu you’ll probably have to type:

apt-get install libncurses5-dev libncurses5

How to build?

Fetch the source, enter its folder and type make:

git clone
cd ncurses_guide

The result of this will be in book/ and book-ref/ directories with .prog programs, each one corresponding to its .c file.

To clean-up, run:

./ clean

How it’s tested?

The project is wired to Travis-Ci service:

Build Status

Everything is compiled with 2 compilers: GCC and Clang and as of now compiles with no warnings.

Subscribe for updates

Once a month I send updates on the new content and hints for software engineers.

Liked it? Share it!

About the author: I'm Wojciech Adam Koszek. I like software, business and design. Poland native. In Bay Area since 2010.   More about me