File:  [CSRG BSD Unix] / 43BSD / usr.lib / libcurses / test.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

#include <curses.h>

#define YPOSBOX		 0
#define XPOSBOX		 0
#define YBOX		20
#define XBOX	        80

#define YPOSSBOX	 2
#define XPOSSBOX	10
#define YSBOX	        17
#define XSBOX	        66

WINDOW *boxing,*sub_box;
main()
{
	boxing = newwin(YBOX,XBOX,YPOSBOX,XPOSBOX);
	sub_box = subwin(boxing,YSBOX,XSBOX,YPOSSBOX,XPOSSBOX);
	initscr();
	box(boxing,'|','-');
	wrefresh(boxing);
	box(sub_box,'.','.');
	overlay(sub_box,boxing);/* overlays sub_box on top of boxing */
	wrefresh(sub_box);
	mvcur(0,COLS-1,LINES-1,0);	/* move to bottom of screen */
	endwin();
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.