Repository navigation
Expand file tree
/
Copy pathoptions.c
More file actions
executable file
·87 lines (78 loc) · 2.51 KB
/
Copy pathoptions.c
File metadata and controls
executable file
·87 lines (78 loc) · 2.51 KB
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include <curses.h>
#include "curspriv.h"
static bool hasold = FALSE; /* for remembering old cursor type */
static int oldmode;
/****************************************************************/
/* Idlok() is used to set flag for using the terminal insert/ */
/* Delete line capabilities. This is not relevant for the PC */
/* Version of curses, and thus nothing is done. */
/****************************************************************/
void idlok(win, flag)
WINDOW *win;
bool flag;
{
}
/****************************************************************/
/* Clearok() marks window 'win' to cause screen clearing and */
/* Redraw the next time a refresh is done. */
/****************************************************************/
void clearok(win, flag)
WINDOW *win;
bool flag;
{
if (win == curscr)
_cursvar.tmpwin->_clear = flag;
else
win->_clear = flag;
}
/****************************************************************/
/* Leaveok() marks window 'win' to allow the update routines */
/* To leave the hardware cursor where it happens to be at the */
/* End of update. Usually used in combination with cursoff(). */
/****************************************************************/
void leaveok(win, flag)
WINDOW *win;
bool flag;
{
win->_leave = flag;
}
/****************************************************************/
/* Scrollok() marks window 'win' to allow the scrolling region */
/* Of it to actually scroll. */
/****************************************************************/
void scrollok(win, flag)
WINDOW *win;
bool flag;
{
win->_scroll = flag;
}
/****************************************************************/
/* Nodelay() marks the window to make character input non- */
/* Waiting, i.e. if there is no character to get, -1 will be */
/* Returned. */
/****************************************************************/
void nodelay(win, flag)
WINDOW *win;
bool flag;
{
win->_nodelay = flag;
}
/****************************************************************/
/* Keypad() marks window 'win' to use the special keypad mode. */
/****************************************************************/
void keypad(win, flag)
WINDOW *win;
bool flag;
{
win->_keypad = flag;
}
/****************************************************************/
/* Meta() allows use of any alternate character set allowed by */
/* The terminal. We always allow this on the PC, so this one */
/* Does nothing. */
/****************************************************************/
void meta(win, flag)
WINDOW *win;
bool flag;
{
}