diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-02-14 14:30:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-02-14 14:30:30 +0100 |
commit | c2b32159413aec1dc8162c4423f04ebb6da68476 (patch) | |
tree | a507f34c60e26cb6fb5fe6fafefffdc7bcfc4fb8 /src/shared/ask-password-api.h | |
parent | 0295642dda314559c8a5b188b21dbca8a99bf09a (diff) | |
download | systemd-c2b32159413aec1dc8162c4423f04ebb6da68476.tar.gz |
tty-ask-password-agent: reenable color for boot-time password prompt
The password prompt used to be highlighted, and that was a good thing.
Let's fix things to make the prompt highlighted again.
Fixes: #3853
Diffstat (limited to 'src/shared/ask-password-api.h')
-rw-r--r-- | src/shared/ask-password-api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/ask-password-api.h b/src/shared/ask-password-api.h index 7a01029ae3..4b2eb3fe92 100644 --- a/src/shared/ask-password-api.h +++ b/src/shared/ask-password-api.h @@ -31,6 +31,7 @@ typedef enum AskPasswordFlags { ASK_PASSWORD_SILENT = 1U << 3, /* do no show any password at all while reading */ ASK_PASSWORD_NO_TTY = 1U << 4, ASK_PASSWORD_NO_AGENT = 1U << 5, + ASK_PASSWORD_CONSOLE_COLOR = 1U << 6, /* Use color if /dev/console points to a console that supports color */ } AskPasswordFlags; int ask_password_tty(int tty_fd, const char *message, const char *keyname, usec_t until, AskPasswordFlags flags, const char *flag_file, char **ret); |