next up previous
Next: Input and Output Up: Screen Manipulation with ncurses Previous: About Windows

Illustrating ncurses Initialization and Termination

The http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/initcurs.c program and also other http://siber.cankaya.edu.tr/SystemsProgramming/cfiles/newterm.c program in Fig. 5 illustrate the usage of the ncurses routines. The first program shows the standard ncurses initialization and termination idioms, using initscr() and endwin(), while the second one demonstrates the proper use of newterm() and delscreen().

Figure 5: UPPER: Shows the initialization and terminations. LOWER: Demonstrates the usage of newterm and delscreen.
\begin{figure}\begin{center}
\footnotesize
\begin{verbatim}...


Cem Ozdogan 2007-05-14