X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2Fconsole.pl;h=14c95bac6b14505493d4891098c1a8b117187b7c;hb=7b04a3d44f31ef2524a67c4498d686335477ee07;hp=f7b0d5f4690e7b7edbefb6d3335bc540cd24d9c0;hpb=657c8a98e43d11ffdf6294984efef8ec164e754e;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index f7b0d5f4..14c95bac 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -134,6 +134,7 @@ sub doresize $inscroll = 0; $spos = @sh < $pagel ? 0 : @sh - $pagel; show_screen(); + $conn->send_later("C$call|$cols") if $conn; } # cease communications @@ -518,10 +519,10 @@ sub idle_loop } my $ch = $bot->getch(); # this is here just to catch RESIZE events if (defined $ch) { - if ($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;