mirror of
https://github.com/systemd/systemd.git
synced 2025-02-23 13:57:33 +03:00
util: highlight questions, so that they cannot be overseen in other log spew
This commit is contained in:
parent
d4d0d4db93
commit
b1b2dc0ce9
4
util.c
4
util.c
@ -1429,10 +1429,14 @@ int ask(char *ret, const char *replies, const char *text, ...) {
|
||||
int r;
|
||||
bool need_nl = true;
|
||||
|
||||
fputs("\x1B[1m", stdout);
|
||||
|
||||
va_start(ap, text);
|
||||
vprintf(text, ap);
|
||||
va_end(ap);
|
||||
|
||||
fputs("\x1B[0m", stdout);
|
||||
|
||||
fflush(stdout);
|
||||
|
||||
if ((r = read_one_char(stdin, &c, &need_nl)) < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user