chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4d0d4d
)
util: highlight questions, so that they cannot be overseen in other log spew
author
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Apr 2010 18:51:06 +0000
(20:51 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Apr 2010 18:51:06 +0000
(20:51 +0200)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index fd991cf807253b88d4cc90e509dee2725bc7a96c..9d99fefe78b8ce5e373e52e91084988d8c938893 100644
(file)
--- 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) {