source: trunk/minix/lib/curses/options.c@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 2.5 KB
Line 
1#include <curses.h>
2#include "curspriv.h"
3
4static bool hasold = FALSE; /* for remembering old cursor type */
5static int oldmode;
6
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/****************************************************************/
12void idlok(win, flag)
13WINDOW *win;
14bool flag;
15{
16}
17
18/****************************************************************/
19/* Clearok() marks window 'win' to cause screen clearing and */
20/* Redraw the next time a refresh is done. */
21/****************************************************************/
22void clearok(win, flag)
23WINDOW *win;
24bool flag;
25{
26 if (win == curscr)
27 _cursvar.tmpwin->_clear = flag;
28 else
29 win->_clear = flag;
30}
31
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/****************************************************************/
37
38void leaveok(win, flag)
39WINDOW *win;
40bool flag;
41{
42 win->_leave = flag;
43}
44
45/****************************************************************/
46/* Scrollok() marks window 'win' to allow the scrolling region */
47/* Of it to actually scroll. */
48/****************************************************************/
49void scrollok(win, flag)
50WINDOW *win;
51bool flag;
52{
53 win->_scroll = flag;
54}
55
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/****************************************************************/
61void nodelay(win, flag)
62WINDOW *win;
63bool flag;
64{
65 win->_nodelay = flag;
66}
67
68/****************************************************************/
69/* Keypad() marks window 'win' to use the special keypad mode. */
70/****************************************************************/
71void keypad(win, flag)
72WINDOW *win;
73bool flag;
74{
75 win->_keypad = flag;
76}
77
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/****************************************************************/
83void meta(win, flag)
84WINDOW *win;
85bool flag;
86{
87}
Note: See TracBrowser for help on using the repository browser.