mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +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;
|
int r;
|
||||||
bool need_nl = true;
|
bool need_nl = true;
|
||||||
|
|
||||||
|
fputs("\x1B[1m", stdout);
|
||||||
|
|
||||||
va_start(ap, text);
|
va_start(ap, text);
|
||||||
vprintf(text, ap);
|
vprintf(text, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
|
fputs("\x1B[0m", stdout);
|
||||||
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
if ((r = read_one_char(stdin, &c, &need_nl)) < 0) {
|
if ((r = read_one_char(stdin, &c, &need_nl)) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user