summaryrefslogtreecommitdiffstats
path: root/src/include/curses.h
diff options
context:
space:
mode:
authorDan Lynch2006-05-18 19:51:19 +0200
committerDan Lynch2006-05-18 19:51:19 +0200
commit2814681d2070bd8f28b79abb4bcc74a05570635c (patch)
tree0cc7f68f62e66c29f077576fa30fe9132a27539f /src/include/curses.h
parentUpdated to new SourceForge CVS locations, and fix a couple of minor (diff)
downloadipxe-2814681d2070bd8f28b79abb4bcc74a05570635c.tar.gz
ipxe-2814681d2070bd8f28b79abb4bcc74a05570635c.tar.xz
ipxe-2814681d2070bd8f28b79abb4bcc74a05570635c.zip
all window primitives implemented
Diffstat (limited to 'src/include/curses.h')
-rw-r--r--src/include/curses.h39
1 files changed, 9 insertions, 30 deletions
diff --git a/src/include/curses.h b/src/include/curses.h
index 911c51aa..34fef8fe 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 */