X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Futil.c;h=a6cdfd5b5ade9bf23a6a5082cf15392ded1d0150;hp=3179502f6c01466b3614fba82d1699ffc1337986;hb=c1072ea0dade39a4188de5e511adfffd4ba8e42c;hpb=9ddc4a26e56b06cd7774a03597980351855d8d54 diff --git a/src/util.c b/src/util.c index 3179502f6..a6cdfd5b5 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);