| Main index | Section 3 | Options |
#include <curses.h>int def_prog_mode(void); int def_shell_mode(void);
int reset_prog_mode(void); int reset_shell_mode(void);
int resetty(void); int savetty(void);
void getsyx(int y, int x); void setsyx(int y, int x);
int ripoffline(int line, int (*init)(WINDOW *, int)); int curs_set(int visibility); int napms(int ms);
Few applications will use this feature, most use getyx instead.
Few applications will use this feature, most use wmove instead.
| &#187; | If line is positive, a line is removed from the top of stdscr. |
| &#187; | if line is negative, a line is removed from the bottom. |
| &#187; | a window pointer to the one-line window that has been allocated and |
| &#187; | an integer with the number of columns in the window. |
ripoffline can be called up to five times before calling initscr or newterm.
curs_set returns the previous cursor state, or ERR if the requested visibility is not supported.
X/Open defines no error conditions. In this implementation
| def_prog_mode, def_shell_mode, reset_prog_mode, reset_shell_mode | |
| return an error if the terminal was not initialized, or if the I/O call to obtain the terminal settings fails. | |
| ripoffline | |
| returns an error if the maximum number of ripped-off lines exceeds the maximum (5). | |
Older SVr4 man pages warn that the return value of curs_set is currently incorrect. This implementation gets it right, but it may be unwise to count on the correctness of the return value anywhere else.
Both ncurses and SVr4 will call curs_set in endwin if curs_set has been called to make the cursor other than normal, i.e., either invisible or very visible. There is no way for ncurses to determine the initial cursor state to restore that.
The SVr4 documentation describes setsyx and getsyx as having return type int. This is misleading, as they are macros with no documented semantics for the return value.
If interrupted, ncurses restarts napms. That, and the limitation to 30 seconds, are different from other implementations.
| 2024-04-20 | curs_kernel (3X) | ncurses 6.5 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
