summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2010-06-11 23:51:17 +0000
committerMarc Espie <espie@cvs.openbsd.org>2010-06-11 23:51:17 +0000
commit941d266f7557909f1634b3e470409d84eb8d19cf (patch)
tree0bb6ae891e93749f6a342eddca3af513eddd466b
parent4c78debdf8a55af8646be9d95820f97fb0b013fe (diff)
start with an empty header
-rw-r--r--usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm
index 32f29f4d4c9..c2794d77ce2 100644
--- a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm
+++ b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Term.pm,v 1.8 2010/06/09 08:13:19 espie Exp $
+# $OpenBSD: Term.pm,v 1.9 2010/06/11 23:51:16 espie Exp $
#
# Copyright (c) 2004-2007 Marc Espie <espie@openbsd.org>
#
@@ -65,6 +65,7 @@ sub init
$self->{lastdisplay} = '';
$self->{continued} = 0;
$self->{work} = 0;
+ $self->{header} = '';
return unless defined $ENV{TERM} || defined $ENV{TERMCAP};
my $termios = POSIX::Termios->new;
$termios->getattr(0);
@@ -212,6 +213,7 @@ sub working
return if $self->{work} < $slowdown;
$self->message(substr("/-\\|", ($self->{work}/$slowdown) % 4, 1));
}
+
sub clear
{
my $self = shift;