From fae675316baa9ba0ccaefe538ddd58ddd0f202b5 Mon Sep 17 00:00:00 2001 From: witekfl Date: Wed, 15 Feb 2006 23:25:54 +0100 Subject: [PATCH] Let BSD users use DEL on the console --- src/terminal/kbd.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/terminal/kbd.c b/src/terminal/kbd.c index 3326fa4bf..c084d0fd8 100644 --- a/src/terminal/kbd.c +++ b/src/terminal/kbd.c @@ -770,12 +770,19 @@ set_kbd_event(struct term_event *ev, int key, int modifier) case ASCII_TAB: key = KBD_TAB; break; - +#if defined(HAVE_SYS_CONSIO_H) || defined(HAVE_MACHINE_CONSOLE_H) /* BSD */ + case ASCII_BS: + key = KBD_BS; + break; + case ASCII_DEL: + key = KBD_DEL; + break; +#else case ASCII_BS: case ASCII_DEL: key = KBD_BS; break; - +#endif case ASCII_LF: case ASCII_CR: key = KBD_ENTER;