X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=3fbc46fe64ab432169d125e1281c007b75a0b76a;hb=c42b114fbe267c198472cc43e9b6ac612ea57144;hp=6651272460eeba69b7c01fe46583785fadafbf52;hpb=2e3638e69f84390b8e911093aa71a7c9382dfc0f;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index 66512724..3fbc46fe 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; }