projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b53046d
)
fix delete for backspace
author
minima
<minima>
Thu, 22 Nov 2001 22:02:39 +0000
(22:02 +0000)
committer
minima
<minima>
Thu, 22 Nov 2001 22:02:39 +0000
(22:02 +0000)
Changes
patch
|
blob
|
history
perl/console.pl
patch
|
blob
|
history
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.
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 41fc953e4785905e06e1f0e1e490b6260fc03e72..ceeaa9459be7fcb6b79951416eead418d40e7166 100755
(executable)
--- 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;
$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;
if ($pos > 0) {
my $a = substr($inbuf, 0, $pos-1);
my $b = substr($inbuf, $pos) if $pos < $lth;