File:  [MW Coherent from dump] / coherent / g / usr / bin / vsh / winlib / cursor.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 *	Switch cursor on/off using terminfo
 *
 *      Copyright (c) 1991-93 by Udo Munk
 */

#ifdef AIX
#define NLS
#endif

#include <curses.h>
#include <term.h>
#include "winfun.h"

int cursor_status = 1;

cursoroff()
{
	cursor_status = 0;
	if ((cursor_invisible != NULL) && (*cursor_invisible != '\0')) {
		putp(cursor_invisible);
		fflush(stdout);
		return(WIN_OK);
	} else
		return(WIN_ERR);
}

cursoron()
{
	cursor_status = 1;
	if ((cursor_invisible != NULL) && (*cursor_invisible != '\0')) {
		putp(cursor_visible);
		fflush(stdout);
		return(WIN_OK);
	} else
		return(WIN_ERR);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.