# ex:ts=8 sw=4:
-# $OpenBSD: Term.pm,v 1.13 2010/08/01 10:26:27 espie Exp $
+# $OpenBSD: Term.pm,v 1.14 2010/08/03 17:31:52 espie Exp $
#
# Copyright (c) 2004-2007 Marc Espie <espie@openbsd.org>
#
}
}
- return if $d eq $self->{lastdisplay} && !$self->{continued};
+ if ($self->{continued}) {
+ print "\r$d";
+ $self->{continued} = 0;
+ $self->{lastdisplay} = $d;
+ return;
+ }
+
+ return if $d eq $self->{lastdisplay};
- if (!$self->{continued} && defined $self->{hpa}) {
+
+ if (defined $self->{hpa}) {
if (defined $stars && defined $self->{stars}) {
$prefix += $self->{stars};
}
print "\r$d";
}
$self->{lastdisplay} = $d;
- $self->{continued} = 0;
}
sub message