projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
175a8ae
)
a more robust console.pl idle loop fix
author
Dirk Koopman
<djk@tobit.co.uk>
Sat, 11 Jul 2020 02:07:44 +0000
(
03:07
+0100)
committer
Dirk Koopman
<djk@tobit.co.uk>
Sat, 11 Jul 2020 02:07:44 +0000
(
03:07
+0100)
make all the comparisons 'eq' and check that RESIZE still works
perl/console.pl
patch
|
blob
|
history
diff --git
a/perl/console.pl
b/perl/console.pl
index 78272aace8027843347d1c5d1c27dbd9e6d37494..d01cd5390e8a88af39b8324dfe67c76ecd66a999 100755
(executable)
--- a/
perl/console.pl
+++ b/
perl/console.pl
@@
-518,10
+518,10
@@
sub idle_loop
}
my $ch = $bot->getch(); # this is here just to catch RESIZE events
if (defined $ch) {
- if ($ch
=~ /^\d+$/ && $ch ==
KEY_RESIZE) {
+ if ($ch
eq
KEY_RESIZE) {
doresize();
} else {
- rec_stdin($ch) unless $ch
==
'-1';
+ rec_stdin($ch) unless $ch
eq
'-1';
}
}
$top->refresh() if $top->is_wintouched;