GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
V_init.c
Go to the documentation of this file.
1
28
#include <grass/config.h>
29
#include <stdlib.h>
30
#include <grass/gis.h>
31
#include <grass/vask.h>
32
33
42
void
V_init
(
void
)
43
{
44
static
int
first
= 1;
45
46
G_clear_screen
();
/* this is a kludge - xterm has problems
47
* it shows what was on the screen after
48
* endwin is called in V_exit()
49
*/
50
if
(first) {
51
initscr();
/* initialize curses and tty */
52
first = 0;
53
}
54
55
/* the order of these 3 calls is important for
56
* Mips' braindead implementation of curses */
57
noecho();
58
nonl();
59
raw();
60
61
clear();
62
refresh();
63
#ifdef HAVE_KEYPAD
64
keypad(stdscr, 1);
65
#endif
66
}
G_clear_screen
int G_clear_screen(void)
Definition:
clear_scrn.c:12
first
int first
Definition:
form/open.c:25
V_init
void V_init(void)
Initialize curses and prepare screen.
Definition:
V_init.c:42
lib
vask
V_init.c
Generated on Sat Jan 2 2016 01:46:49 for GRASS Programmer's Manual by
1.8.5