summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses/mucurses.c
diff options
context:
space:
mode:
authorMichael Brown2006-12-19 02:17:10 +0100
committerMichael Brown2006-12-19 02:17:10 +0100
commitc1bac56f8546f2cadbaefbda33ca23efeb269bf9 (patch)
tree28ca5112a4a82b338ec7dbb546ec72a91e400ed2 /src/hci/mucurses/mucurses.c
parentAssume a 24-line screen, since we can't (easily) avoid scrolling after (diff)
downloadipxe-c1bac56f8546f2cadbaefbda33ca23efeb269bf9.tar.gz
ipxe-c1bac56f8546f2cadbaefbda33ca23efeb269bf9.tar.xz
ipxe-c1bac56f8546f2cadbaefbda33ca23efeb269bf9.zip
Use current attributes when erasing.
Diffstat (limited to 'src/hci/mucurses/mucurses.c')
-rw-r--r--src/hci/mucurses/mucurses.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/hci/mucurses/mucurses.c b/src/hci/mucurses/mucurses.c
index 083f6b37..775422e6 100644
--- a/src/hci/mucurses/mucurses.c
+++ b/src/hci/mucurses/mucurses.c
@@ -59,6 +59,17 @@ void _wputch ( WINDOW *win, chtype ch, int wrap ) {
}
/**
+ * Write a single character to a window
+ *
+ * @v *win window in which to write
+ * @v c character rendition to write
+ * @v wrap wrap "switch"
+ */
+void _wputc ( WINDOW *win, char c, int wrap ) {
+ _wputch ( win, ( c | win->attrs ), wrap );
+}
+
+/**
* Retreat the cursor back one position (useful for a whole host of
* ops)
*
@@ -100,7 +111,7 @@ void _wputchstr ( WINDOW *win, const chtype *chstr, int wrap, int n ) {
*/
void _wputstr ( WINDOW *win, const char *str, int wrap, int n ) {
for ( ; *str && n-- ; str++ ) {
- _wputch( win, *str | win->attrs, wrap );
+ _wputc ( win, *str, wrap );
}
}