Departments
|
NCurses!Text mode programming ain't dead yet!
Source CodeYou asked! I finally got off my butt and did it. Here is a tar.gz file chock full of the book's source code. That's 238 files in two directories. The files in the book directory are from the chapter part of the book, named as mentioned in the book. The files in the book-ref directory are the sample files from the reference, named according to function. Please let me know if anything is missing or wrong; my e-mail address can be found in the front of the book. Thanks! Supplemental Information* I've received e-mail from a fellow who's created a JavaScript binding to NCurses, implemented on top of the SpiderMonkey JavaScript engine (used by Mozilla/Firefox). By using this binding it makes it easier and faster to write NCurses apps in JavaScript, as well as having several advantages over using C. Check it out at: http://SpiderApe.sourceforge.net/ * Here's a screen map for you! It can be used to help build menus or plot coordinates on a standard 80x24 screen. PDF format. * NCruses Colors, hues, and other information. As the book is not in color I wasn't able to include color swatches for the various NCurses color commands. But, hey! The web is in color! So here are those swatches:
* It is possible to get more than the standard 8 (or 16) colors out of NCurses, but you must be using a compatible terminal and re-compile NCurses on your computer to include that full color support. Read more... * A few of the books' figures were done originally in colors. Sadly, it's not a four-color book. To see the images in their original color, lookee here. Bonus ProgramsHere is my solution for the dual-window, rot13 program at the end of Chapter 8. Here is my solution for the clickput.c source code mentioned in Chapter 13. The gettysburg.txt file used in a few of the sample programs for filling a window with text. Errata
Other ResourcesGNU NCurses web page - How to get NCurses, options, features, and so on. Thomas Dickey's NCurses FAQ - General questions about NCurses itself, plus a few links to some How-Tos.
Copyright © 1997-2008 by QPBC. |