The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group


curs_set - set the cursor mode


#include <curses.h>

int curs_set(int visibility);


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.


If the terminal supports the cursor mode specified by visibility, then curs_set() returns the previous cursor state. Otherwise, the function returns ERR.


No errors are defined.



UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]