00001 /*@A (C) 1992 Allen I. Holub */ 00002 #include "cur.h" 00003 00004 WINDOW *stdscr; 00005 00006 void endwin() /* Clean up as required */ 00007 { 00008 cmove(stdscr, 24,0 ); 00009 } 00010 00011 void initscr(void) 00012 { 00013 /* Creates stdscr. If you want a boxed screen, call boxed() before this 00014 * routine. The underlying text is NOT saved. Note that the atexit call 00015 * insures a clean up on normal exit, but not with a Ctrl-Break, you'll 00016 * have to call signal() to do that. 00017 */ 00018 00019 // nosave(stdscr); 00020 // boxed(stdscr); 00021 init(-1); 00022 // stdscr = newwin( 25, 40, 10, 20, IO ); 00023 // save(stdscr); 00024 // atexit( (void (*)(void)) endwin ); 00025 }