projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd5dc32
)
journal: add color to verification progress bar
author
Lennart Poettering
<lennart@poettering.net>
Thu, 16 Aug 2012 01:45:10 +0000
(
03:45
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 16 Aug 2012 15:10:57 +0000
(17:10 +0200)
src/journal/journal-verify.c
patch
|
blob
|
history
diff --git
a/src/journal/journal-verify.c
b/src/journal/journal-verify.c
index
8ef91ce
..
1a9a730
100644
(file)
--- a/
src/journal/journal-verify.c
+++ b/
src/journal/journal-verify.c
@@
-146,11
+146,13
@@
static void draw_progress(uint64_t p, usec_t *last_usec) {
j = (n * (unsigned) p) / 65535ULL;
k = n - j;
- fputs("\r\x1B[?25l", stdout);
+ fputs("\r\x1B[?25l"
ANSI_HIGHLIGHT_GREEN_ON
, stdout);
for (i = 0; i < j; i++)
fputs("\xe2\x96\x88", stdout);
+ fputs(ANSI_HIGHLIGHT_OFF, stdout);
+
for (i = 0; i < k; i++)
fputs("\xe2\x96\x91", stdout);