[LCP] invisible cursor

Christopher Howard choward at indicium.us
Tue Jan 27 06:13:37 EST 2009


On Mon, 26 Jan 2009, Steve Baker wrote:

> Christopher Howard <choward at indicium.us> wrote:
>> In ncurses programming, is it possible to make the cursor disappear
>> (become invisible)?
>>
>> The only suggestion I've had so far was the A_INVIS attribute, but this
>> doesn't seem to have any effect on the cursor.
>
>  I believe what you want is:
>
>    int curs_set(int visibility);
>
> 	The curs_set routine sets the cursor state is set to invisible,
> 	normal, or very visible for visibility equal to 0, 1, or 2
> 	respectively.  If the terminal supports the visibility requested, the
> 	previous cursor state is returned; otherwise, ERR is returned.
>
>
> 								- Steve
>
> _______________________________________________
> This is the Linux C Programming List
> :  http://lists.linux.org.au/listinfo/linuxcprogramming List
>

Thank you! Worked great. I guess I didn't notice that function. I remember 
seeing it in the ncurses man page, but it was listed as belonging to the 
kernel man page so I assumed it was referring to something else. =]

-- 
Christopher Howard
http://indicium.us



More information about the linuxCprogramming mailing list