From: Dirk Koopman Date: Sat, 11 Jul 2020 01:56:04 +0000 (+0100) Subject: fix spurious == errors on console.pl input X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=175a8ae456afa614f9962db14045878a41c2cd22;p=spider.git fix spurious == errors on console.pl input This only happens if it catches a character during the idle loop which is the only way to catch Curses RESIZE signal. But a stray "normal" character might get through as well. --- diff --git a/perl/console.pl b/perl/console.pl index f7b0d5f4..78272aac 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -518,7 +518,7 @@ sub idle_loop } my $ch = $bot->getch(); # this is here just to catch RESIZE events if (defined $ch) { - if ($ch == KEY_RESIZE) { + if ($ch =~ /^\d+$/ && $ch == KEY_RESIZE) { doresize(); } else { rec_stdin($ch) unless $ch == '-1';