xref: /minix3/lib/libcurses/curs_set.c (revision b706112487045bc1efd01e3d4d53d9a6b04a0bca)
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 }
26