util: highlight questions, so that they cannot be overseen in other log spew
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user