Signed-off-by: Michael Brown <mcb30@ipxe.org>
#include <ipxe/sbi.h>
#include <ipxe/io.h>
+#include <ipxe/keys.h>
#include <ipxe/console.h>
#include <config/console.h>
/* Consume and return buffered character, if any */
character = sbi_console_input;
sbi_console_input = 0;
+
+ /* Convert DEL to backspace */
+ if ( character == DEL )
+ character = BACKSPACE;
+
return character;
}
#define LF CTRL_J
#define CR CTRL_M
#define ESC 0x1b
+#define DEL 0x7f
/*
* Special keys outside the normal Unicode range