| Main index | Section 3 | 日本語 | Options |
#include <curses.h>int clearok(WINDOW *win, bool bf); int idlok(WINDOW *win, bool bf); void idcok(WINDOW *win, bool bf); void immedok(WINDOW *win, bool bf); int leaveok(WINDOW *win, bool bf); int scrollok(WINDOW *win, bool bf);
int setscrreg(int top, int bot); int wsetscrreg(WINDOW *win, int top, int bot);
X/Open Curses does not specify any error conditions.
In this implementation,
| &#187; | those functions that have a window pointer will return an error if the window pointer is null |
| &#187; | wsetscrreg returns an error if the scrolling region limits extend outside the window boundaries. |
The immedok routine is useful for windows that are used as terminal emulators.
Some historic curses implementations had, as an undocumented feature, the ability to do the equivalent of clearok(..., 1) by saying touchwin(stdscr) or clear(stdscr). This will not work under ncurses.
Earlier System V curses implementations specified that with scrollok enabled, any window modification triggering a scroll also forced a physical refresh. X/Open Curses does not require this, and ncurses avoids doing it to perform better vertical-motion optimization at wrefresh time.
X/Open Curses does not mention that the cursor should be made invisible as a side-effect of leaveok. SVr4 curses documentation does this, but the code does not. Use curs_set to make the cursor invisible.
| 2024-04-20 | curs_outopts (3X) | ncurses 6.5 |
| Main index | Section 3 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Today, the Unix equivalent of a power drill would have 20 dials and switches, come with a nonstandard plug, require the user to hand-wind the motor coil, and not accept 3/8" or 7/8" drill bits (though this would be documented in the BUGS section of its instruction manual). | ” |
| — The Unix Haters' handbook | ||