diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-23 20:51:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-23 20:51:06 +0200 |
commit | b1b2dc0ce9fb04d1c1a6ed0a4fee7011a79602f6 (patch) | |
tree | 41b3d5cbe464d55bf13ba04d2cb9a2518f213edb /util.c | |
parent | d4d0d4db9345170cc61a6b46ac9e11c5b8424b19 (diff) |
util: highlight questions, so that they cannot be overseen in other log spew
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |