From: Alan Cox Date: Fri, 13 Nov 2015 16:38:09 +0000 (+0000) Subject: curses: add missing getmaxyx and getbegyx X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=5dfbe6409ec01599d8f0eab61f7bbed8ec152d95;p=FUZIX.git curses: add missing getmaxyx and getbegyx --- 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