| 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.
| “ | Like a classics radio station whose play list spans decades, Unix simultaneously exhibits its mixed and dated heritage. There's Clash-era graphics interfaces; Beatles-era two-letter command names; and systems programs (for example, ps) whose terse and obscure output was designed for slow teletypes; Bing Crosby-era command editing (# and @ are still the default line editing commands), and Scott Joplin-era core dumps. | ” |
| — The Unix Haters' handbook | ||