summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-04-15 23:13:36 +0000
committerache <ache@FreeBSD.org>1998-04-15 23:13:36 +0000
commitbc5a6e9a9b4b5a83a26c8fd5b72d7f17c23c513d (patch)
treec306fad1fa97b6722da4ffd61509a31c2a31277c /lib
parent8a4252919b2548f4d2e0122db7ac219927864704 (diff)
downloadFreeBSD-src-bc5a6e9a9b4b5a83a26c8fd5b72d7f17c23c513d.zip
FreeBSD-src-bc5a6e9a9b4b5a83a26c8fd5b72d7f17c23c513d.tar.gz
Add some easy to implement XSI macros including attr_get
Diffstat (limited to 'lib')
-rw-r--r--lib/libncurses/curses.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libncurses/curses.h b/lib/libncurses/curses.h
index 0800a8a..a3874b9 100644
--- a/lib/libncurses/curses.h
+++ b/lib/libncurses/curses.h
@@ -339,7 +339,6 @@ extern int slk_touch(void);
#define setsyx(y,x) (stdscr->_cury = y, stdscr->_curx = x)
#define wbkgdset(win,ch) ((win)->_bkgd = ch)
-#define getbkgd(win) ((win)->_bkgd)
/* It seems older SYSV curses define these */
#define getattrs(win) (win->_attrs)
@@ -439,6 +438,16 @@ extern int slk_touch(void);
#define mvinsstr(y,x,s) mvwinsstr(stdscr,y,x,s)
#define mvinsnstr(y,x,s,n) mvwinsnstr(stdscr,y,x,s,n)
+/*
+ * XSI curses macros for XPG4 conformance.
+ */
+
+#define attr_get() wattr_get(stdscr)
+#define getbkgd(win) ((win)->_bkgd)
+
+#define vid_attr(a) vidattr(a)
+#define wattr_get(win) ((win)->_attrs)
+
/* Funny "characters" enabled for various special function keys for input */
/* Whether such a key exists depend if its definition is in the terminfo entry */
OpenPOWER on IntegriCloud