GRASS Programmer's Manual
6.4.2(2012)
|
00001 00028 #include <grass/config.h> 00029 #include <stdlib.h> 00030 #include <grass/gis.h> 00031 #include <grass/vask.h> 00032 00033 00042 void V_init(void) 00043 { 00044 static int first = 1; 00045 00046 G_clear_screen(); /* this is a kludge - xterm has problems 00047 * it shows what was on the screen after 00048 * endwin is called in V_exit() 00049 */ 00050 if (first) { 00051 initscr(); /* initialize curses and tty */ 00052 first = 0; 00053 } 00054 00055 /* the order of these 3 calls is important for 00056 * Mips' braindead implementation of curses */ 00057 noecho(); 00058 nonl(); 00059 raw(); 00060 00061 clear(); 00062 refresh(); 00063 #ifdef HAVE_KEYPAD 00064 keypad(stdscr, 1); 00065 #endif 00066 }