summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 22:10:32 +0100
committerMichael Brown2006-12-20 22:10:32 +0100
commitb9f8599537c6481d78fbf215c92c61eea8100be3 (patch)
tree6f2672212dbd582ce91c3c6a4615015cd15e2fa1 /src/hci/mucurses
parentPrevent NULL from ever pointing to some real code or data. (This was (diff)
downloadipxe-b9f8599537c6481d78fbf215c92c61eea8100be3.tar.gz
ipxe-b9f8599537c6481d78fbf215c92c61eea8100be3.tar.xz
ipxe-b9f8599537c6481d78fbf215c92c61eea8100be3.zip
Define KEY_MIN and use it in kb.c.
Diffstat (limited to 'src/hci/mucurses')
-rw-r--r--src/hci/mucurses/kb.c4
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 :