mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 07:11:05 +01:00
Add some easy to implement XSI macros including attr_get
This commit is contained in:
parent
416aa49b70
commit
3cfe146f65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35217
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user