diff options
author | Michael Brown | 2006-12-20 22:10:32 +0100 |
---|---|---|
committer | Michael Brown | 2006-12-20 22:10:32 +0100 |
commit | b9f8599537c6481d78fbf215c92c61eea8100be3 (patch) | |
tree | 6f2672212dbd582ce91c3c6a4615015cd15e2fa1 /src/hci | |
parent | Prevent NULL from ever pointing to some real code or data. (This was (diff) | |
download | ipxe-b9f8599537c6481d78fbf215c92c61eea8100be3.tar.gz ipxe-b9f8599537c6481d78fbf215c92c61eea8100be3.tar.xz ipxe-b9f8599537c6481d78fbf215c92c61eea8100be3.zip |
Define KEY_MIN and use it in kb.c.
Diffstat (limited to 'src/hci')
-rw-r--r-- | src/hci/mucurses/kb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hci/mucurses/kb.c b/src/hci/mucurses/kb.c index 474f11ef..f0c8dcb0 100644 --- a/src/hci/mucurses/kb.c +++ b/src/hci/mucurses/kb.c @@ -67,7 +67,7 @@ int wgetch ( WINDOW *win ) { c = _wgetc( win ); if ( m_echo ) { - if ( c >= 0401 && c <= 0633 ) { + if ( c >= KEY_MIN ) { switch(c) { case KEY_LEFT : case KEY_BACKSPACE : @@ -112,7 +112,7 @@ int wgetnstr ( WINDOW *win, char *str, int n ) { _wcursback( win ); wdelch( win ); } else { - if ( c >= 0401 && c <= 0633 ) { + if ( c >= KEY_MIN ) { switch(c) { case KEY_LEFT : case KEY_BACKSPACE : |