curs_getyx(3CURSES) Curses Library Functions curs_getyx(3CURSES)NAME
curs_getyx, getyx, getparyx, getbegyx, getmaxyx - get curses cursor and window coordinates
SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ]
#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);
DESCRIPTION
With the getyx() macro, the cursor position of the window is placed in the two integer variables y and x.
With the getparyx() macro, if win is a subwindow, the beginning coordinates of the subwindow relative to the parent window are placed 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.
RETURN VALUES
The return values of these macros are undefined (that is, they should not be used as the right-hand side of assignment statements).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO curses(3CURSES), attributes(5)NOTES
The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>.
Note that all of these interfaces are macros and that ``&'' is not necessary before the variables y and x.
SunOS 5.10 31 Dec 1996 curs_getyx(3CURSES)
Check Out this Related Man Page
curs_getyx(3CURSES) Curses Library Functions curs_getyx(3CURSES)NAME
curs_getyx, getyx, getparyx, getbegyx, getmaxyx - get curses cursor and window coordinates
SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ]
#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);
DESCRIPTION
With the getyx() macro, the cursor position of the window is placed in the two integer variables y and x.
With the getparyx() macro, if win is a subwindow, the beginning coordinates of the subwindow relative to the parent window are placed 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.
RETURN VALUES
The return values of these macros are undefined (that is, they should not be used as the right-hand side of assignment statements).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO curses(3CURSES), attributes(5)NOTES
The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>.
Note that all of these interfaces are macros and that ``&'' is not necessary before the variables y and x.
SunOS 5.11 31 Dec 1996 curs_getyx(3CURSES)
hello
i am new user to this site.
i want to know about equal command for gotoxy() which is used in dos operating system and also equal hedder file for conio.h?
please give me responce to me if anybudy know about that. (5 Replies)
I am writing a program to display a database to the screen(xterm) and want to allow the window resize signal to increase/decrease the amount data that is displayed. I have a signal handler function for catching the SIGWINCH event and calling a function to reallocate the space for the windows... (0 Replies)
Hi All,
I have written the below code to know the current curser position. The problem with this code is - it gives me window size properly but whn it comes to current curser position then it gives (0,0) as x,y co-ordinate eventhough my curser is somewhere middle on command line interface.
... (0 Replies)
Hi,
tried to native compile Debian Dialog as ncurses-dev is available.
I am trying native compile Debian Dialog using gcc on Linux embedded router.
What's wrong, as running than make
I get errors.
Mayby this line in the log file is an exaplanation to a problem ?
"
checking if we have... (1 Reply)
Hello All Gr8 Linux Developers Out There,
Background
=========
I have created a ncurses application that is suppose to run only on the Linux's virtual console. This application will heavily utilize the ncurses windows to show window-based UI to the user. I am using CentOS5.x. The terminal for... (7 Replies)
Hi.
I am beginning with Unix C Curses Library and i would like to know if it's possible to resize my current window.
In other words, i am working with a Putty Client over my Windows system and with a telnet/ssh connection to linux. I want to build a small linux application using C Curses... (10 Replies)