|
|
1.1 ! root 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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.