Hello!
The attached patch fixes backspace in rxvt
>From /usr/include/ncurses/curses.h:
#define KEY_BACKSPACE 0407 /* Backspace (unreliable) */
Let's make it more reliable. If the code 127 has not been recognized by
ncurses as delete or backspace, let's assume that it's backspace.
I agree that my rxvt may be not perfectly tuned, but other programs are
quite happy with it.
Full keyboard support in /sbin/grub still needs a lot of work.
Pavel Roskin
Index: stage2/char_io.c
===================================================================
RCS file: /gd/gnu/anoncvsroot/grub/stage2/char_io.c,v
retrieving revision 1.2
diff -u -r1.2 char_io.c
--- char_io.c 1999/07/12 00:47:11 1.2
+++ char_io.c 1999/07/13 13:30:08
@@ -326,6 +326,7 @@
lpos ++;
/* fallthrough is on purpose! */
case 8: /* C-h backspace */
+ case 127:
if (lpos > 0)
{
int i;