aboutsummaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses/kb.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2006-12-19 00:27:25 +0000
committerMichael Brown <mcb30@etherboot.org>2006-12-19 00:27:25 +0000
commitedbdce6e3d18fdf52a320204fe1cfbb235898779 (patch)
tree2d3232823edb9ccd8c1f38f81f087bb810bcd2a6 /src/hci/mucurses/kb.c
parent09f9142cbf9b35d291ed7f5dad6d6f0b3bc9a852 (diff)
downloadipxe-edbdce6e3d18fdf52a320204fe1cfbb235898779.tar.gz
Now basically functioning on ANSI-supporting consoles.
Diffstat (limited to 'src/hci/mucurses/kb.c')
-rw-r--r--src/hci/mucurses/kb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/hci/mucurses/kb.c b/src/hci/mucurses/kb.c
index 8c38f1f8..474f11ef 100644
--- a/src/hci/mucurses/kb.c
+++ b/src/hci/mucurses/kb.c
@@ -1,7 +1,6 @@
#include <curses.h>
#include <stddef.h>
#include <timer.h>
-#include <console.h>
#include "mucurses.h"
/** @file
@@ -38,7 +37,7 @@ int _wgetc ( WINDOW *win ) {
return ERR;
timer = INPUT_DELAY_TIMEOUT;
- while ( ! iskey() ) {
+ while ( ! win->scr->peek( win->scr ) ) {
if ( m_delay == 0 ) // non-blocking read
return ERR;
if ( timer > 0 ) { // time-limited blocking read
@@ -48,7 +47,7 @@ int _wgetc ( WINDOW *win ) {
} else { return ERR; } // non-blocking read
}
- c = getchar();
+ c = win->scr->getc( win->scr );
if ( m_echo && ( c >= 32 && c <= 126 ) ) // printable ASCII characters
_wputch( win, (chtype) ( c | win->attrs ), WRAP );