secondary cache feature in vm.
[minix.git] / lib / libcurses / curs_set.c
blobe481d59b296adee0703de8cf47d71791e51e6421
1 #include <curses.h>
2 #include <termcap.h>
4 extern char *vi, *ve, *vs;
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;
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);