naive question about turning off cursor

0000-Admin0000 root at escape.radig.de
Wed Apr 3 02:03:46 AEST 1991


lam at uicbert.eecs.uic.edu (Michael Lam) writes:

>Does anyone know how to turn off the cursor while running a
>C program, maybe using curses.h.
>Any comment will be very much appreciated.

hi,
i don't know of any CURSES way of turning the cursor on/off, however there
is a termcap/terminfo capability, which you can use. it is:

TERMINFO:
civis		- Make cursor invisible
cvvis		- Make cursor very visible
cnorm		- Make cursor normal

the TERMCAP equivalents are: vs, vi, and ve.

also, you might check whether your terminal has a "cursor is hard to see"
glitch. You can find that out with the TERMINFO flag chts. there is no
TERMCAP equivalent, though, so that flag might not be in the SUN-OS terminal
description databases.

hope that helps you.

so long,
			felix

-- 
Felix Gaehtgens, Homburger Str. 26, 6000 Frankfurt/main(argc, argv) 90, FRG
EMAIL: felix at escape.radig.de or root at escape.radig.de



More information about the Comp.unix.questions mailing list