source: trunk/minix/lib/curses/curs_set.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 439 bytes
RevLine 
[9]1#include <curses.h>
2#include "curspriv.h"
3#include <termcap.h>
4
5extern char *vi, *ve, *vs;
6
7/* Sets cursor visibility to unvisible=0; normal visible=1 or very good
8 * visible=2.
9*/
10void curs_set(visibility)
11int 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.