Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.