aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>2004-03-09 17:04:24 +0000
committerhubertf <hubertf@NetBSD.org>2004-03-09 17:04:24 +0000
commitd9415b521c515095fba42397975441dfbfb487d8 (patch)
tree731648ee58873672e9ead73fa33f3321931c48cc /include
parent3cac59fa5b5b8e6ebd1ec4c9a16728fcfa27cd9b (diff)
downloadbsd-progress-d9415b521c515095fba42397975441dfbfb487d8.tar.gz
bsd-progress-d9415b521c515095fba42397975441dfbfb487d8.tar.zst
bsd-progress-d9415b521c515095fba42397975441dfbfb487d8.zip
Allow custom text printed before (left of) the progress bar from progress(1):
miyu# cat openoffice-linux-1.1.0.tgz | progress -z -p 'Bytes written: ' dd of=/dev/null bs=1m Bytes written: 193 MB 13.83 MB/s 0+195211 records in and: miyu# progress -f openoffice-linux-1.1.0.tgz -z -p 'Bytes written: ' dd of=/dev/null bs=1m Bytes written: 28% |****** | 57919 KB 14.12 MB/s 00:09 ETA OK'd by lukem.
Diffstat (limited to 'include')
-rw-r--r--include/progressbar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/progressbar.h b/include/progressbar.h
index b7ca63f..b8e416e 100644
--- a/include/progressbar.h
+++ b/include/progressbar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: progressbar.h,v 1.3 2003/02/28 09:53:49 lukem Exp $ */
+/* $NetBSD: progressbar.h,v 1.4 2004/03/09 17:04:24 hubertf Exp $ */
/*-
* Copyright (c) 1996-2003 The NetBSD Foundation, Inc.
@@ -58,6 +58,7 @@ GLOBAL int ttywidth; /* width of tty */
GLOBAL off_t bytes; /* current # of bytes read */
GLOBAL off_t filesize; /* size of file being transferred */
GLOBAL off_t restart_point; /* offset to restart transfer */
+GLOBAL char *prefix; /* Text written left of progress bar */
#ifndef STANDALONE_PROGRESS