Controls physical cursor placement after a call to the refresh subroutine.
#include <curses.h>
leaveok( Window, Flag)
WINDOW *Window;
bool Flag;
The leaveok subroutine controls cursor placement after a call to the refresh (refresh or wrefresh Subroutine) subroutine. If the Flag parameter is set to FALSE, curses leaves the physical cursor in the same location as logical cursor when the window is refreshed.
If the Flag parameter is set to TRUE, curses leaves the cursor as is and does not move the physical cursor when the window is refreshed. This option is useful for applications that do not use the cursor, because it reduces physical cursor motions.
By default leaveok is FALSE, and the physical cursor is moved to the same position as the logical cursor after a refresh.
OK | Indicates the subroutine completed. The leaveok subroutine always returns this value. |
WINDOW *my_window; leaveok(my_window, FALSE);
WINDOW *my_window; leaveok(my_window, TRUE);
This subroutine is part of Base Operating System (BOS) Runtime.
The refresh (refresh or wrefresh Subroutine) subroutine.
Controlling the Cursor with Curses, Curses Overview for Programming, List of Curses Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.