HP-UX Reference (11i v1 05/09) - 3 Library Functions A-M (vol 6)
c
curs_set(3X) curs_set(3X)
(ENHANCED CURSES)
NAME
curs_set — set the cursor mode
SYNOPSIS
#include <curses.h>
int curs_set(int visibility);
DESCRIPTION
The curs_set() function sets the appearance of the cursor based on the value of visibility:
Value of visibility Appearance of Cursor
0 Invisible
1 Terminal-specific normal mode
2 Terminal-specific high visibility mode
The terminal does not necessarily support all the above values.
RETURN VALUE
If the terminal supports the cursor mode specified by visibility, then curs_set() returns the previous
cursor state. Otherwise, the function returns ERR.
ERRORS
No errors are defined.
SEE ALSO
<curses.h>.
CHANGE HISTORY
First released in X/Open Curses, Issue 4.
Section 3−−112 Hewlett-Packard Company − 1 − HP-UX 11i Version 1: September 2005