From 5dfbe6409ec01599d8f0eab61f7bbed8ec152d95 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 13 Nov 2015 16:38:09 +0000 Subject: [PATCH] curses: add missing getmaxyx and getbegyx --- Library/include/curses.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/include/curses.h b/Library/include/curses.h index b2f83552..5bceb187 100644 --- a/Library/include/curses.h +++ b/Library/include/curses.h @@ -68,6 +68,8 @@ typedef int bool; #define wattroff(win, attrs) (win)->_attrs &= ~(attrs) #define resetty() stty(1, &_orig_tty) #define getyx(win,y,x) (y = (win)->_cury, x = (win)->_curx) +#define getmaxyx(win,y,x) (y = (win)->_maxy, x = (win)->_maxx) +#define getbegyx(win,y,x) (y = (win)->_begy, x = (win)->_begx) /* Video attribute definitions. */ #define A_BLINK 0x0100 -- 2.34.1