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
XSBOX
defined in line
11; used 1 times
YBOX
defined in line
5; used 1 times
YSBOX
defined in line
10; used 1 times