repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
secondary cache feature in vm.
[minix.git]
/
lib
/
libcurses
/
curs_set.c
blob
e481d59b296adee0703de8cf47d71791e51e6421
1
#include <curses.h>
2
#include <termcap.h>
3
4
extern
char
*
vi
, *
ve
, *
vs
;
5
6
/* Sets cursor visibility to unvisible=0; normal visible=1 or very good
7
* visible=2.
8
*/
9
void
curs_set
(
visibility
)
10
int
visibility
;
11
{
12
switch
(
visibility
) {
13
case
0
:
14
if
(
vi
)
tputs
(
vi
,
1
,
outc
);
15
break
;
16
case
1
:
17
if
(
ve
)
tputs
(
ve
,
1
,
outc
);
18
break
;
19
case
2
:
20
if
(
vs
)
21
tputs
(
vs
,
1
,
outc
);
22
else if
(
ve
)
23
tputs
(
ve
,
1
,
outc
);
24
}
25
}