.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "dbar 1" .TH dbar 1 "2021-02-02" "dbar" "User Commands" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" dbar \- ASCII progresbar .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& echo | dbar [options] .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" dbar lets you define static 0% and 100% marks or you can define these marks dynamically at runtime. Static and dynamic marks can be mixed, in this case the value specified at runtime will have a higher priority. .PP You can specify ranges of numbers, negative, positive or ranges with a negative min value and positive max value. .PP All numbers are treated as double precision floating point, i.e. the input is \s-1NOT\s0 limited to integers. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-l\fR" 4 .IX Item "-l" Label to be prepended to the bar (default: "" ). .IP "\fB\-nonl\fR" 4 .IX Item "-nonl" no new line, don't put '\en' at the end of the bar (default: do print \&\*(L"\en\*(R") .IP "\fB\-max\fR" 4 .IX Item "-max" Value to be considered 100% (default: 100). .IP "\fB\-min\fR" 4 .IX Item "-min" Value to be considered 0% (default: 0). .IP "\fB\-s\fR" 4 .IX Item "-s" Symbol represeting the percentage value in the meter (default: \*(L"=\*(R"). .IP "\fB\-w\fR" 4 .IX Item "-w" Number of charcaters to be considered 100% in the meter (default: 25) .SH "EXAMPLES" .IX Header "EXAMPLES" Static 100% mark or single value input: .PP .Vb 1 \& echo 25 | dbar \-max 100 \-l text \& \& Output: text 25% [====== ] .Ve .PP If your 100% mark changes dynamically or 2\-values input: .PP .Vb 5 \& echo "50 150" | dbar \& | | \& | |_\|_ max value \& | \& |_\|_ value to display \& \& Output: 33% [======== ] .Ve .PP If your value range is not between [0, maxval] or 3\-values input: .PP .Vb 7 \& echo "50 \-25 150" | dbar \& | | | \& | | |_\|_ max value 100% mark \& | | \& | |_\|_\|_\|_\|_ min value 0% mark \& | \& |_\|_\|_\|_\|_\|_\|_\|_ value to display \& \& Output: 43% [=========== ] .Ve .PP Multiple runs: .PP .Vb 1 \& for i in 2 20 50 75 80; do echo $i; sleep 1; done | dbar | dzen2 \& \& Output: Find out yourself. .Ve .SH "ENVIRONMENT" .IX Header "ENVIRONMENT" None. .SH "FILES" .IX Header "FILES" None. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdzen2\fR\|(1) .SH "AUTHORS" .IX Header "AUTHORS" Program was written by Robert Manea . .PP This manual page was written by Jari Aalto for the Debian \s-1GNU\s0 system (but may be used by others). Released under license \s-1GNU GPL\s0 version 2 or (at your option) any later version. For more information about license, visit .