GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
V_exit.c
Go to the documentation of this file.
1 
28 #include <grass/config.h>
29 #include <stdio.h>
30 #include <grass/vask.h>
31 
32 
41 void V_exit(void)
42 {
43 #ifdef HAVE_KEYPAD
44  keypad(stdscr, 0);
45 #endif
46  clear();
47  refresh();
48 
49  /* added for Mips' braindead implementation of curses
50  * and the ordering is important
51  */
52  echo();
53  nl();
54  noraw();
55 
56  endwin();
57  fflush(stdout);
58  fflush(stderr);
59  fflush(stdin);
60 
61  /* Added 17 Sep 1990 dpg. is a hack we have been using on Sys V
62  * machines it is not the correct way, but it seems to do the job.
63  * Fixes the problem with prompts not being displayed after
64  * exitting curses. */
65 #ifdef SYSV
66  setvbuf(stderr, NULL, _IONBF, 0);
67  setvbuf(stdout, NULL, _IONBF, 0);
68 #endif
69 }
void V_exit(void)
Erases the current screen and flushes the current curses setup.
Definition: V_exit.c:41
return NULL
Definition: dbfopen.c:1394