logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

is_cleared, is_idlok, is_idcok, is_immedok, is_keypad, is_leaveok, is_nodelay, is_notimeout, is_pad,

Description

ncurses provides functions returning properties of a WINDOW structure, allowing it to be “opaque” if  the
       application defines the NCURSES_OPAQUE preprocessor symbol.  Opacity in this sense means that the members
       of  struct  data  types  are  not  directly accessible (for instance, through “.” or “->” operators), but
       instead must be queried and/or  set  via  library  functions.   Advantages  of  opacity  include  greater
       abstraction  and  improved  management  of  concurrent accesses to data structures, keeping object states
       coherent.

       is_cleared
              returns the value set by clearok(3NCURSES).

       is_idcok
              returns the value set by idcok(3NCURSES).

       is_idlok
              returns the value set by idlok(3NCURSES).

       is_immedok
              returns the value set by immedok(3NCURSES).

       is_keypad
              returns the value set by keypad(3NCURSES).

       is_leaveok
              returns the value set by leaveok(3NCURSES).

       is_nodelay
              returns the value set by nodelay(3NCURSES).

       is_notimeout
              returns the value set by notimeout(3NCURSES).

       is_pad returns TRUE if the window is a pad; that is, it was created by newpad(3NCURSES).

       is_scrollok
              returns the value set by scrollok(3NCURSES).

       is_subwin
              returns TRUE if the window is a  subwindow,  that  is,  it  was  created  by  subwin(3NCURSES)  or
              derwin(3NCURSES).

       is_syncok
              returns the value set by syncok(3NCURSES).

       wgetdelay
              returns the delay timeout set by wtimeout(3NCURSES).

       wgetparent
              returns the parent WINDOW pointer for subwindows, or NULL for windows having no parent.

       wgetscrreg
              stores  the  top  and  bottom  rows  for  the  scrolling margin set by wsetscrreg(3NCURSES) in the
              corresponding arguments, returning ERR upon failure and OK upon successful completion.

Extensions

       These functions originated with ncurses.

Name

is_cleared,  is_idlok,  is_idcok,  is_immedok,  is_keypad,  is_leaveok, is_nodelay, is_notimeout, is_pad,
       is_scrollok, is_subwin, is_syncok, wgetdelay, wgetparent, wgetscrreg - obtain curses window properties

Notes

ncurses provides both a C function and a preprocessor macro for each function documented in this page.

Portability

       Applications  employing  ncurses  extensions  should  condition  their  use  on  the  visibility  of  the
       NCURSES_VERSION preprocessor macro.

       NetBSD  curses  since  10.1  (2024)  supports  wgetscr_reg.   It also implements getscr_reg, operating on
       stdscr.

Return Value

       These functions return TRUE or FALSE except as noted.

See Also

ncurses(3NCURSES), inopts(3NCURSES), outopts(3NCURSES), threads(3NCURSES), window(3NCURSES)

ncurses 6.5                                        2025-02-15                                   opaque(3NCURSES)

Synopsis

#include<curses.h>boolis_cleared(constWINDOW*win);boolis_idcok(constWINDOW*win);boolis_idlok(constWINDOW*win);boolis_immedok(constWINDOW*win);boolis_keypad(constWINDOW*win);boolis_leaveok(constWINDOW*win);boolis_nodelay(constWINDOW*win);boolis_notimeout(constWINDOW*win);boolis_pad(constWINDOW*win);boolis_scrollok(constWINDOW*win);boolis_subwin(constWINDOW*win);boolis_syncok(constWINDOW*win);WINDOW*wgetparent(constWINDOW*win);intwgetdelay(constWINDOW*win);intwgetscrreg(constWINDOW*win,int*top,int*bottom);

See Also