getyx,  getparyx,  getbegyx,  getmaxyx  -  get curses cursor and window


   #include <curses.h>

   void getyx(WINDOW *win, int y, int x);
   void getparyx(WINDOW *win, int y, int x);
   void getbegyx(WINDOW *win, int y, int x);
   void getmaxyx(WINDOW *win, int y, int x);


   The getyx macro places the current cursor position of the given  window
   in the two integer variables y and x.

   If  win  is  a  subwindow,  the  getparyx  macro  places  the beginning
   coordinates of the subwindow relative to the  parent  window  into  two
   integer variables y and x.  Otherwise, -1 is placed into y and x.

   Like  getyx,  the  getbegyx  and  getmaxyx  macros  store  the  current
   beginning coordinates and size of the specified window.


   The return values of these macros are undefined (i.e., they should  not
   be used as the right-hand side of assignment statements).


   All  of these interfaces are macros.  A "&" is not necessary before the
   variables y and x.


   The getyx, getparyx, getbegyx and getmaxyx macros are described in  the
   XSI Curses standard, Issue 4.

   This  implementation also provides functions getbegx, getbegy, getcurx,
   getcury, getmaxx, getmaxy, getparx and getpary for  compatibility  with
   older versions of curses.

   Although  X/Open  Curses  does  not  address this, many implementations
   provide members of the WINDOW structure containing values corresponding
   to  these  macros.  For best portability, do not rely on using the data
   in WINDOW, since some implementations make WINDOW opaque (do not  allow
   direct use of its members).

   Besides the problem of opaque structures, the data stored in like-named
   members may not have like-values  in  different  implementations.   For
   example,  the  WINDOW._maxx and WINDOW._maxy values in ncurses have (at
   least  since  release  1.8.1)  differed  by   one   from   some   other
   implementations.   The  difference  is  hidden  by  means  of the macro


   ncurses(3NCURSES), legacy(3NCURSES), opaque(3NCURSES)


More Linux Commands

audit_detect_machine(3) - Detects the current machine type
audit_detect_machine queries uname and converts the kernel machine string to an enum value defined in machine_t. The machine type is needed for any use of the a

cursor(3menu) - position a menu's cursor - Linux man page...
cursor.3menu - The function pos_menu_cursor restores the cursor to the current position associated with the menus selected item. This is useful after curses rou

tputs_sp(3ncurses) - curses screen-pointer extension........
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

XReadBitmapFile(3) - manipulate bitmaps - Linux manual page
The XReadBitmapFile function reads in a file containing a bitmap. The file is parsed in the encoding of the current locale. The ability to read other than the s

espdiff(1) - apply the appropriate transformation to a set o
espdiff applies the appropriate transformation to a patch or set of patches, depending on what you intend to accomplish. The input patches must be clean: in oth

gvfs-less(1) Execute less on the output of gvfscat..........
gvfs-less executes less on the output of gvfs-cat. gvfs-less works just like the traditional less utility, but using gvfs locations instead of local files: for

xdr_pointer(3) - library routines for external data represen
These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using

htons(3) - convert values between host and network byte orde
The htonl() function converts the unsigned integer hostlong from host byte order to network byte order. The htons() function converts the unsigned short integer

sane-hpljm1005(5) - SANE backend for Hewlett-Packard LaserJe
The sane-hpljm1005 library implements a SANE (Scanner Access Now Easy) backend that provides access to the following Hewlett-Packard scanner: LaserJet M1005 If

Tcl_DStringEndSublist(3) - manipulate dynamic strings.......
Dynamic strings provide a mechanism for building up arbitrarily long strings by gradually appending information. If the dynamic string is short then there will

podofouncompress(1) Uncompress PDF files - Linux man page...
podofouncompress is one of the command line tools from the PoDoFo library that provide several useful operations to work with PDF files. It can remove compressi

refresh(3ncurses) - refresh curses windows and lines........
The refresh and wrefresh routines (or wnoutrefresh and doupdate) must be called to get actual output to the terminal, as other routines merely manipulate data s

We can't live, work or learn in freedom unless the software we use is free.