1: #include <curses.h>
   2: 
   3: #define YPOSBOX      0
   4: #define XPOSBOX      0
   5: #define YBOX        20
   6: #define XBOX            80
   7: 
   8: #define YPOSSBOX     2
   9: #define XPOSSBOX    10
  10: #define YSBOX           17
  11: #define XSBOX           66
  12: 
  13: WINDOW *boxing,*sub_box;
  14: main()
  15: {
  16:     boxing = newwin(YBOX,XBOX,YPOSBOX,XPOSBOX);
  17:     sub_box = subwin(boxing,YSBOX,XSBOX,YPOSSBOX,XPOSSBOX);
  18:     initscr();
  19:     box(boxing,'|','-');
  20:     wrefresh(boxing);
  21:     box(sub_box,'.','.');
  22:     overlay(sub_box,boxing);/* overlays sub_box on top of boxing */
  23:     wrefresh(sub_box);
  24:     mvcur(0,COLS-1,LINES-1,0);  /* move to bottom of screen */
  25:     endwin();
  26: }

Defined functions

main defined in line 14; used 1 times

Defined macros

XBOX defined in line 6; used 1 times
  • in line 16
XPOSBOX defined in line 4; used 1 times
  • in line 16
XPOSSBOX defined in line 9; used 1 times
  • in line 17
XSBOX defined in line 11; used 1 times
  • in line 17
YBOX defined in line 5; used 1 times
  • in line 16
YPOSBOX defined in line 3; used 1 times
  • in line 16
YPOSSBOX defined in line 8; used 1 times
  • in line 17
YSBOX defined in line 10; used 1 times
  • in line 17
Last modified: 1986-02-13
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1176
Valid CSS Valid XHTML 1.0 Strict