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