26 lines
		
	
	
		
			417 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			417 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include <curses.h>
 | 
						|
#include <termcap.h>
 | 
						|
 | 
						|
extern char *vi, *ve, *vs;
 | 
						|
 | 
						|
/* Sets cursor visibility to unvisible=0; normal visible=1 or very good
 | 
						|
 * visible=2. 
 | 
						|
*/
 | 
						|
void curs_set(visibility)
 | 
						|
int visibility;
 | 
						|
{
 | 
						|
  switch (visibility) {
 | 
						|
      case 0:
 | 
						|
	if (vi) tputs(vi, 1, outc);
 | 
						|
	break;
 | 
						|
      case 1:
 | 
						|
	if (ve) tputs(ve, 1, outc);
 | 
						|
	break;
 | 
						|
      case 2:
 | 
						|
	if (vs)
 | 
						|
		tputs(vs, 1, outc);
 | 
						|
	else if (ve)
 | 
						|
		tputs(ve, 1, outc);
 | 
						|
  }
 | 
						|
}
 |