Lab Assignment -- NCURSES


Given the following program:

/pub/class/330/NCurses/Exercise/win_border.c

Modify the code in the following way:

  1. Use wborder instead of box to create the outlines of the windows
  2. Create 3 windows that make use of the entire size of your current terminal (*hint*: use LINES and COLS). They should look something like this:

  3. In the top LHS window print "Window 1"
  4. In the top RHS window print "Window 2"    
  5. In the bottom window print an integer variable The result should look something like this (pressing the space bar will change the 0 to 1)

Deliverables:

The original code for this assignment was obtained from "The Linux Documentation Project". For more examples, check out this link:

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/ncurses_programs/