git.shiar.nl
/
barcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
42684ea
)
rotate sparkless indicators default
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 12 Nov 2022 23:52:17 +0000
(
00:52
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 18 Nov 2022 00:25:46 +0000
(
01:25
+0100)
barcat
patch
|
blob
|
history
diff --git
a/barcat
b/barcat
index 28e09b063738bf66e3e80bbb29337d8a8785c872..2339bc7e2b8ed8dc8b604ec06e10ed557f9ebcfe 100755
(executable)
--- a/
barcat
+++ b/
barcat
@@
-111,8
+111,8
@@
$opt{'value-length'} = 1 if $opt{unmodified};
$opt{'signal-stat'} //= exists $SIG{INFO} ? 'INFO' : 'QUIT';
$opt{markers} //= '=avg >31.73v <68.27v +50v |0';
$opt{palette} //= $opt{color} && [31, 90, 32];
$opt{'signal-stat'} //= exists $SIG{INFO} ? 'INFO' : 'QUIT';
$opt{markers} //= '=avg >31.73v <68.27v +50v |0';
$opt{palette} //= $opt{color} && [31, 90, 32];
-$opt{indicators} = [split //,
-
$opt{indicators} || ($opt{ascii} ? ' .oO' : ' ▁▂▃▄▅▆▇
█')
+$opt{indicators} = [split //,
$opt{indicators} ||
+
($opt{ascii} ? ' .oO' : $opt{spark} ? ' ▁▂▃▄▅▆▇█' : ' ▏▎▍▌▋▊▉
█')
] if defined $opt{indicators} or $opt{spark};
$opt{hidemin} = ($opt{hidemin} || 1) - 1;
$opt{input} = (@ARGV && $ARGV[0] =~ m/\A[-0-9]/) ? \@ARGV : undef
] if defined $opt{indicators} or $opt{spark};
$opt{hidemin} = ($opt{hidemin} || 1) - 1;
$opt{input} = (@ARGV && $ARGV[0] =~ m/\A[-0-9]/) ? \@ARGV : undef