X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;fp=perl%2Fconsole.pl;h=6c93d5ff44aca8e762d6caddefbc8898624ab99d;hb=74db48555c9a548e2ef49815234af3fc2b8ecd81;hp=6651272460eeba69b7c01fe46583785fadafbf52;hpb=ed671609b5db3c808c94871c35b5ad2337de1101;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index 66512724..6c93d5ff 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -131,6 +131,8 @@ sub do_resize $inscroll = 0; $spos = @sh < $pagel ? 0 : @sh - $pagel; show_screen(); + $conn->send_later("C$call|$cols") if $conn; + } # cease communications @@ -242,7 +244,10 @@ sub addtotop $inbuf =~ s/\s+/ /g; if (length $inbuf > $cols) { $Text::Wrap::columns = $cols; - push @sh, split /\n/, wrap('',' ' x 19, $inbuf); + my $token; + ($token) = $inbuf =~ m!^(.* de [-\w\d/\#]+\s+|\w{9}\@\d\d:\d\d:\d\d )!; + $token ||= ' ' x 19; + push @sh, split /\n/, wrap('', ' ' x length($token), $inbuf); } else { push @sh, $inbuf; }