summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-16 03:45:10 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-16 17:10:57 +0200
commitf9fffc31cdc4be7a0e4437837ae06a0c111fe020 (patch)
treed34d285932b0c975375ce6168c55fd164ead4f7c /src
parentfd5dc3204d350142a9105d3e9c83bf29d3a900ee (diff)
journal: add color to verification progress bar
Diffstat (limited to 'src')
-rw-r--r--src/journal/journal-verify.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/journal-verify.c b/src/journal/journal-verify.c
index 8ef91ce485..1a9a73092e 100644
--- 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);