SVN: toys/rsget.pl/RSGet/Line.pm
sparky
sparky at pld-linux.org
Wed Nov 4 00:03:12 CET 2009
Author: sparky
Date: Wed Nov 4 00:03:12 2009
New Revision: 10942
Modified:
toys/rsget.pl/RSGet/Line.pm
Log:
- fixed text log in daemon mode
Modified: toys/rsget.pl/RSGet/Line.pm
==============================================================================
--- toys/rsget.pl/RSGet/Line.pm (original)
+++ toys/rsget.pl/RSGet/Line.pm Wed Nov 4 00:03:12 2009
@@ -59,7 +59,7 @@
push @newdead, $text;
}
- print @print;
+ print @print unless $nooutput;
if ( @newdead ) {
push @dead, @newdead;
$dead_change++;
@@ -126,9 +126,10 @@
sub print_all_lines
{
+ print_dead_lines();
+ return if $nooutput;
term_size() unless $term_size_columns;
my $added = 0;
- print_dead_lines();
$added += print_status_lines( $term_size_columns );
$added += print_active_lines( $term_size_columns );
return $added;
@@ -136,8 +137,8 @@
sub update
{
- return if $nooutput;
my $added = print_all_lines();
+ return if $nooutput;
print "\033[J\033[" . $added . "A\r" if $added;
}
More information about the pld-cvs-commit
mailing list