git.shiar.nl
/
barcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
color headers
[barcat.git]
/
barcat
diff --git
a/barcat
b/barcat
index 7da22597daea388d539e81b883f56de60bfac278..fd110c5d14f127da94c86a8828c54965eef15a24 100755
(executable)
--- a/
barcat
+++ b/
barcat
@@
-42,6
+42,7
@@
GetOptions(\%opt,
" (range expected)\n"
);
},
" (range expected)\n"
);
},
+ 'header!',
'markers|m=s',
'graph-format=s' => sub {
$opt{'graph-format'} = substr $_[1], 0, 1;
'markers|m=s',
'graph-format=s' => sub {
$opt{'graph-format'} = substr $_[1], 0, 1;
@@
-192,6
+193,14
@@
sub sival {
);
}
);
}
+say(
+ color(31), sprintf('%*s', $lenval, $minval),
+ color(90), '-', color(36), '+',
+ color(32), sprintf('%*s', $size * ($maxval - $minval) - 3, $maxval),
+ color(90), '-', color(36), '+',
+ color(0),
+) if $opt{header};
+
while ($nr <= $#lines) {
$nr >= $opt{hidemax} and last if defined $opt{hidemax};
my $val = $values[$nr];
while ($nr <= $#lines) {
$nr >= $opt{hidemax} and last if defined $opt{hidemax};
my $val = $values[$nr];