ncurses examples

This section shows the basics of using the ncurses library. ncurses is a "CRT screen handling and optimisation package" In English, it provides screen, window and terminal input operations. ANSI C provides no mechanisms for accurately manipulating terminal I/O (e.g. clearing the screen, getting a single character from the user, positioning text at a certain screen location, changing colours). ncurses provides the resources to do these things. It is a UNIX library, but has also been ported to other platforms, including DOS. A version of ncurses is available with the DJGPP DOS compiler (see the links page).