diff options
| author | Michael Brown | 2006-12-18 17:46:25 +0100 |
|---|---|---|
| committer | Michael Brown | 2006-12-18 17:46:25 +0100 |
| commit | 2ed2b2efe842eac526ecdd74f147ea02f52daf29 (patch) | |
| tree | aad3c0770c216113aad2ec6e2b2b8dcd3c097b34 /src/hci | |
| parent | The "increment MAC address by port number" hack applies only to EF1. (diff) | |
| download | ipxe-2ed2b2efe842eac526ecdd74f147ea02f52daf29.tar.gz ipxe-2ed2b2efe842eac526ecdd74f147ea02f52daf29.tar.xz ipxe-2ed2b2efe842eac526ecdd74f147ea02f52daf29.zip | |
Use iskey() and getchar() to interact with console, rather than object
abstraction.
Diffstat (limited to 'src/hci')
| -rw-r--r-- | src/hci/mucurses/kb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hci/mucurses/kb.c b/src/hci/mucurses/kb.c index 639484695..1d02a0c88 100644 --- a/src/hci/mucurses/kb.c +++ b/src/hci/mucurses/kb.c @@ -1,6 +1,7 @@ #include <curses.h> #include <stddef.h> #include <timer.h> +#include <console.h> #include "core.h" /** @file @@ -37,7 +38,7 @@ int _wgetc ( WINDOW *win ) { return ERR; timer = INPUT_DELAY_TIMEOUT; - while ( ! win->scr->peek( win->scr ) ) { + while ( ! iskey() ) { if ( m_delay == 0 ) // non-blocking read return ERR; if ( timer > 0 ) { // time-limited blocking read @@ -47,7 +48,7 @@ int _wgetc ( WINDOW *win ) { } else { return ERR; } // non-blocking read } - c = win->scr->getc( win->scr ); + c = getchar(); if ( m_echo && ( c >= 32 && c <= 126 ) ) // printable ASCII characters _wputch( win, (chtype) ( c | win->attrs ), WRAP ); |
