X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=fad52b963e3b94121a3c677489c0d7b25e63698d;hb=4dfc1f60733b682dc1ac9724fd75395d1c41c62d;hp=a0cb567175ec7f55b4380626e333311e1216ec6b;hpb=cafedfc0df4b2c519a8227e091f746a44af07ce2;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index a0cb5671..fad52b96 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -469,7 +469,6 @@ sub rec_stdin # add a line to the end of the top screen sub addtotop { - $Text::Wrap::Columns = $cols; while (@_) { my $inbuf = shift; my $l = length $inbuf; @@ -477,6 +476,7 @@ sub addtotop if ($l > $cols) { $inbuf =~ s/\s+/ /g; if (length $inbuf > $cols) { + $Text::Wrap::columns = $cols; push @sh, split /\n/, wrap('',' ' x 19, $inbuf); } else { push @sh, $inbuf; @@ -610,7 +610,7 @@ doresize(); $SIG{__DIE__} = \&sig_term; -#$Text::Wrap::Columns = $cols; +$Text::Wrap::columns = $cols; my $lastmin = 0;