panic() cleanup.
[minix.git] / lib / libcurses / options.c
blob2ab0ac3c4e7af18ff104f046c8f850dad4376259
1 #include <curses.h>
2 #include "curspriv.h"
4 /****************************************************************/
5 /* Idlok() is used to set flag for using the terminal insert/ */
6 /* Delete line capabilities. This is not relevant for the PC */
7 /* Version of curses, and thus nothing is done. */
8 /****************************************************************/
9 void idlok(win, flag)
10 WINDOW *win;
11 bool flag;
15 /****************************************************************/
16 /* Clearok() marks window 'win' to cause screen clearing and */
17 /* Redraw the next time a refresh is done. */
18 /****************************************************************/
19 void clearok(win, flag)
20 WINDOW *win;
21 bool flag;
23 if (win == curscr)
24 _cursvar.tmpwin->_clear = flag;
25 else
26 win->_clear = flag;
29 /****************************************************************/
30 /* Leaveok() marks window 'win' to allow the update routines */
31 /* To leave the hardware cursor where it happens to be at the */
32 /* End of update. Usually used in combination with cursoff(). */
33 /****************************************************************/
35 void leaveok(win, flag)
36 WINDOW *win;
37 bool flag;
39 win->_leave = flag;
42 /****************************************************************/
43 /* Scrollok() marks window 'win' to allow the scrolling region */
44 /* Of it to actually scroll. */
45 /****************************************************************/
46 void scrollok(win, flag)
47 WINDOW *win;
48 bool flag;
50 win->_scroll = flag;
53 /****************************************************************/
54 /* Nodelay() marks the window to make character input non- */
55 /* Waiting, i.e. if there is no character to get, -1 will be */
56 /* Returned. */
57 /****************************************************************/
58 void nodelay(win, flag)
59 WINDOW *win;
60 bool flag;
62 win->_nodelay = flag;
65 /****************************************************************/
66 /* Keypad() marks window 'win' to use the special keypad mode. */
67 /****************************************************************/
68 void keypad(win, flag)
69 WINDOW *win;
70 bool flag;
72 win->_keypad = flag;
75 /****************************************************************/
76 /* Meta() allows use of any alternate character set allowed by */
77 /* The terminal. We always allow this on the PC, so this one */
78 /* Does nothing. */
79 /****************************************************************/
80 void meta(win, flag)
81 WINDOW *win;
82 bool flag;