From 422c57889c45bafa6cbcef9b28a8230f0f3c95f6 Mon Sep 17 00:00:00 2001 From: minima Date: Thu, 22 Nov 2001 22:02:39 +0000 Subject: [PATCH] fix delete for backspace --- Changes | 2 ++ perl/console.pl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 28c98b7b..69e98ec5 100644 --- 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. diff --git a/perl/console.pl b/perl/console.pl index 41fc953e..ceeaa945 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -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; -- 2.43.0