diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-11 23:51:17 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-11 23:51:17 +0000 |
commit | 941d266f7557909f1634b3e470409d84eb8d19cf (patch) | |
tree | 0bb6ae891e93749f6a342eddca3af513eddd466b | |
parent | 4c78debdf8a55af8646be9d95820f97fb0b013fe (diff) |
start with an empty header
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm | 4 |
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; |