VMS Help  —  CRTL  leaveok
    Signals Curses to leave the cursor at the current coordinates
    after an update to the window.

    Format

      #include  <curses.h>

      leaveok  (WINDOW *win, bool boolf);

1  –  Arguments

 win

    A pointer to the window.

 boolf

    A Boolean TRUE or FALSE value. If boolf is TRUE, the cursor
    remains in place after the last update and the coordinate setting
    on win changes accordingly. If boolf is FALSE, the cursor moves
    to the currently specified (y,x) coordinates of win.

2  –  Description

    The leaveok function defaults to moving the cursor to the current
    coordinates of win. The bool type is defined in the <curses.h>
    header file as follows:

    #define bool int
Close Help