Uninitialized vector entry?
[minix3.git] / lib / curses / options.c
blob00c888915053567aa68bfabd4a4fafe45e135da1
1 #include <curses.h>
2 #include "curspriv.h"
4 static bool hasold = FALSE; /* for remembering old cursor type */
5 static int oldmode;
7 /****************************************************************/
8 /* Idlok() is used to set flag for using the terminal insert/ */
9 /* Delete line capabilities. This is not relevant for the PC */
10 /* Version of curses, and thus nothing is done. */
11 /****************************************************************/
12 void idlok(win, flag)
13 WINDOW *win;
14 bool flag;
18 /****************************************************************/
19 /* Clearok() marks window 'win' to cause screen clearing and */
20 /* Redraw the next time a refresh is done. */
21 /****************************************************************/
22 void clearok(win, flag)
23 WINDOW *win;
24 bool flag;
26 if (win == curscr)
27 _cursvar.tmpwin->_clear = flag;
28 else
29 win->_clear = flag;
32 /****************************************************************/
33 /* Leaveok() marks window 'win' to allow the update routines */
34 /* To leave the hardware cursor where it happens to be at the */
35 /* End of update. Usually used in combination with cursoff(). */
36 /****************************************************************/
38 void leaveok(win, flag)
39 WINDOW *win;
40 bool flag;
42 win->_leave = flag;
45 /****************************************************************/
46 /* Scrollok() marks window 'win' to allow the scrolling region */
47 /* Of it to actually scroll. */
48 /****************************************************************/
49 void scrollok(win, flag)
50 WINDOW *win;
51 bool flag;
53 win->_scroll = flag;
56 /****************************************************************/
57 /* Nodelay() marks the window to make character input non- */
58 /* Waiting, i.e. if there is no character to get, -1 will be */
59 /* Returned. */
60 /****************************************************************/
61 void nodelay(win, flag)
62 WINDOW *win;
63 bool flag;
65 win->_nodelay = flag;
68 /****************************************************************/
69 /* Keypad() marks window 'win' to use the special keypad mode. */
70 /****************************************************************/
71 void keypad(win, flag)
72 WINDOW *win;
73 bool flag;
75 win->_keypad = flag;
78 /****************************************************************/
79 /* Meta() allows use of any alternate character set allowed by */
80 /* The terminal. We always allow this on the PC, so this one */
81 /* Does nothing. */
82 /****************************************************************/
83 void meta(win, flag)
84 WINDOW *win;
85 bool flag;