journal: add color to verification progress bar
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user