DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

curs_set(3curses)


curs_set -- set the cursor mode

Synopsis

cc [options] file -lcurses
#include <curses.h>

int curs_set(int visibility);

Description

The curs_set(3curses) function sets the appearance of the cursor based on the value of visibility:

``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(3curses) returns the previous cursor state. Otherwise, the function returns ERR.

Errors

No errors are defined.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004