Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getmaxyx(3) [osf1 man page]

curs_getyx(3)						     Library Functions Manual						     curs_getyx(3)

NAME
curs_getyx, getyx, getparyx, getbegyx, getmaxyx - Get Curses cursor and window coordinates SYNOPSIS
#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 ); LIBRARY
Curses Library (libcurses) STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: getparyx, getbegyx, getmaxyx, getyx: XCURSES4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
The getyx macro places the cursor position of the window into 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 the two integer variables y and x. Otherwise; the macro places -1 into y and x. Like getyx, the getbegyx and getmaxyx macros store the current beginning coordinates and size of the specified window. NOTES
The header file <curses.h> automatically includes the header file <stdio.h>. All of these interfaces are macros, and applications do not have to specify & before the variables y and x. RETURN VALUES
The return values of these macros are undefined (that is, they should not be used as the right-hand side of an assignment statements). SEE ALSO
Functions: curses(3) Others: standards(5) curs_getyx(3)

Check Out this Related Man Page

curs_getyx(3)						     Library Functions Manual						     curs_getyx(3)

NAME
curs_getyx, getyx, getparyx, getbegyx, getmaxyx - Get Curses cursor and window coordinates SYNOPSIS
#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 ); LIBRARY
Curses Library (libcurses) STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: getparyx, getbegyx, getmaxyx, getyx: XCURSES4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
The getyx macro places the cursor position of the window into 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 the two integer variables y and x. Otherwise; the macro places -1 into y and x. Like getyx, the getbegyx and getmaxyx macros store the current beginning coordinates and size of the specified window. NOTES
The header file <curses.h> automatically includes the header file <stdio.h>. All of these interfaces are macros, and applications do not have to specify & before the variables y and x. RETURN VALUES
The return values of these macros are undefined (that is, they should not be used as the right-hand side of an assignment statements). SEE ALSO
Functions: curses(3) Others: standards(5) curs_getyx(3)
Man Page

6 More Discussions You Might Find Interesting

1. Programming

equal command for gotoxy() in uinx

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)
Discussion started by: g_s_r_c
5 Replies

2. Programming

curses & window resize issues

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)
Discussion started by: kwaz
0 Replies

3. Programming

need info on current curser postion.

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)
Discussion started by: swap007
0 Replies

4. Debian

Trying to native compile Debian Dialog

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)
Discussion started by: jack2
1 Replies

5. Programming

How to render solid borders in NCURSES windows

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)
Discussion started by: ku@ntum
7 Replies

6. Programming

Resize current window with Curses

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)
Discussion started by: pogdorica
10 Replies