X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=78272aace8027843347d1c5d1c27dbd9e6d37494;hb=175a8ae456afa614f9962db14045878a41c2cd22;hp=f7b0d5f4690e7b7edbefb6d3335bc540cd24d9c0;hpb=657c8a98e43d11ffdf6294984efef8ec164e754e;p=spider.git 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';