diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-13 21:56:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-14 01:54:33 +0100 |
commit | c1072ea0dade39a4188de5e511adfffd4ba8e42c (patch) | |
tree | 490d64f4fc003715be52817a3098bae5d2dccbb9 /src/util.c | |
parent | 9ddc4a26e56b06cd7774a03597980351855d8d54 (diff) |
util: rework ANSI escape code macros
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c index 3179502f6c..a6cdfd5b5a 100644 --- a/src/util.c +++ b/src/util.c @@ -2467,14 +2467,14 @@ int ask(char *ret, const char *replies, const char *text, ...) { bool need_nl = true; if (on_tty) - fputs("\x1B[1m", stdout); + fputs(ANSI_HIGHLIGHT_ON, stdout); va_start(ap, text); vprintf(text, ap); va_end(ap); if (on_tty) - fputs("\x1B[0m", stdout); + fputs(ANSI_HIGHLIGHT_OFF, stdout); fflush(stdout); |