fix delete for backspace
authorminima <minima>
Thu, 22 Nov 2001 22:02:39 +0000 (22:02 +0000)
committerminima <minima>
Thu, 22 Nov 2001 22:02:39 +0000 (22:02 +0000)
Changes
perl/console.pl

diff --git a/Changes b/Changes
index 28c98b7b08bafc678891650d05278959c6edcbdb..69e98ec5635faf3deb0adef5696f6802fec83c72 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+22Nov01=======================================================================
+1. finally fix DELETE = ^H = Backspace in console.pl
 21Nov01=======================================================================
 1. altered the PC16/17 generation slightly to see whether this cures Roland's
 problem.
index 41fc953e4785905e06e1f0e1e490b6260fc03e72..ceeaa9459be7fcb6b79951416eead418d40e7166 100755 (executable)
@@ -371,7 +371,7 @@ sub rec_stdin
                        $pos = 0;
                } elsif ($r eq KEY_END || $r eq "\005") {
                        $pos = $lth;
-               } elsif ($r eq KEY_BACKSPACE || $r eq "\010" || $r eq "\0177") {
+               } elsif ($r eq KEY_BACKSPACE || $r eq "\010" || $r eq "\x7f") {
                        if ($pos > 0) {
                                my $a = substr($inbuf, 0, $pos-1);
                                my $b = substr($inbuf, $pos) if $pos < $lth;