diff options
author | Dan Lynch <danjlynch@users.sourceforge.net> | 2006-05-18 17:51:19 +0000 |
---|---|---|
committer | Dan Lynch <danjlynch@users.sourceforge.net> | 2006-05-18 17:51:19 +0000 |
commit | 2814681d2070bd8f28b79abb4bcc74a05570635c (patch) | |
tree | 0cc7f68f62e66c29f077576fa30fe9132a27539f /src/include/curses.h | |
parent | 7d239660fbced0b015cd8021f78f6548dd456825 (diff) | |
download | ipxe-2814681d2070bd8f28b79abb4bcc74a05570635c.tar.gz |
all window primitives implemented
Diffstat (limited to 'src/include/curses.h')
-rw-r--r-- | src/include/curses.h | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/src/include/curses.h b/src/include/curses.h index 911c51aa5..34fef8fe7 100644 --- a/src/include/curses.h +++ b/src/include/curses.h @@ -477,7 +477,7 @@ extern int wattr_off ( WINDOW *, attr_t, void * ); extern int wattr_on ( WINDOW *, attr_t, void * ); extern int wattr_set ( WINDOW *, attr_t, short, void * ); extern int wbkgd ( WINDOW *, chtype ); -extern void wbkgdset ( WINDOW *, chtype ); +/*extern void wbkgdset ( WINDOW *, chtype );*/ extern int wborder ( WINDOW *, chtype, chtype, chtype, chtype, chtype, chtype, chtype, chtype ); extern int wchgat ( WINDOW *, int, attr_t, short, const void * ); @@ -628,7 +628,7 @@ static inline int bkgd ( chtype ch ) { * Set background rendition attributes for stdscr */ static inline void bkgdset ( chtype ch ) { - wbkgdset ( stdscr, ch ); + wattrset ( stdscr, ch ); } /** @@ -832,37 +832,16 @@ static inline int waddstr ( WINDOW *win, const char *str ) { return waddnstr ( win, str, -1 ); } -/* - * Primitives - */ -/** - * Advance cursor (wrap text) - * - * @v *win window in which to advance - * @ret rc void function - */ -void _advcurs_wrap ( struct _curses_window *win ); -/** - * Advance cursor (no wrap text) - * - * @v *win window in which to advance - * @ret rc void function - */ -void _advcurs_nowrap ( struct _curses_window *win ); -/** - * Store cursor position for later restoration - * - * @v *win window on which to operate - * @ret rc return encoded position - */ -unsigned int _store_curs_pos ( WINDOW *win ); /** - * Restore cursor position from encoded backup variable + * Set background rendition attributes for a window and apply to + * contents * - * @v *win window on which to operate - * @v pos encoded position + * @v *win window to be operated on + * @v ch chtype containing rendition attributes * @ret rc return status code */ -int _restore_curs_pos ( WINDOW *win, unsigned int pos ); +static inline int wbkgdset ( WINDOW *win, chtype ch ) { + return wattrset( win, ch ); +} #endif /* CURSES_H */ |