X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=887600e31ee6438ca9f96188b13fd5c2e60b5d93;hb=6ea05be3ca5b4857bb319782c408d5784658ec20;hp=ceac24e278890d1275fa6f904761d1993355061e;hpb=89ab02190d47c949e48b303260055f00591e3cdd;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index ceac24e2..887600e3 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -188,9 +188,11 @@ sub show_screen # add a line to the end of the top screen sub addtotop { - my $inbuf = shift; - push @shistory, $inbuf; - shift @shistory if @shistory > $maxshist; + while (@_) { + my $inbuf = shift; + push @shistory, $inbuf; + shift @shistory if @shistory > $maxshist; + } show_screen(); }