From: Lennart Poettering Date: Fri, 23 Apr 2010 18:51:06 +0000 (+0200) Subject: util: highlight questions, so that they cannot be overseen in other log spew X-Git-Tag: v1~471 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=b1b2dc0ce9fb04d1c1a6ed0a4fee7011a79602f6 util: highlight questions, so that they cannot be overseen in other log spew --- diff --git a/util.c b/util.c index fd991cf80..9d99fefe7 100644 --- a/util.c +++ b/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) {