X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=d01cd5390e8a88af39b8324dfe67c76ecd66a999;hb=b1f9b4650ed8fdeb1e03834f076f3040ce65776a;hp=78272aace8027843347d1c5d1c27dbd9e6d37494;hpb=175a8ae456afa614f9962db14045878a41c2cd22;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index 78272aac..d01cd539 100755 --- 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;