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/ask-password-api.c | |
parent | 9ddc4a26e56b06cd7774a03597980351855d8d54 (diff) |
util: rework ANSI escape code macros
Diffstat (limited to 'src/ask-password-api.c')
-rw-r--r-- | src/ask-password-api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ask-password-api.c b/src/ask-password-api.c index f57105c132..ce2f3cbe77 100644 --- a/src/ask-password-api.c +++ b/src/ask-password-api.c @@ -89,10 +89,10 @@ int ask_password_tty( goto finish; } - loop_write(ttyfd, "\x1B[1m", 4, false); + loop_write(ttyfd, ANSI_HIGHLIGHT_ON, sizeof(ANSI_HIGHLIGHT_ON)-1, false); loop_write(ttyfd, message, strlen(message), false); loop_write(ttyfd, " ", 1, false); - loop_write(ttyfd, "\x1B[0m", 4, false); + loop_write(ttyfd, ANSI_HIGHLIGHT_OFF, sizeof(ANSI_HIGHLIGHT_OFF)-1, false); new_termios = old_termios; new_termios.c_lflag &= ~(ICANON|ECHO); |