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

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. 12.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 12.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-16