From e70b264c5ba1ccf7341aa90bdbf0573c9b13d17e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 26 Jul 2018 19:56:40 +0200 Subject: Do not set foreground color for generated password Since commit 63ef32a (generate: use nice ansi colors instead., 2014-05-08), generated passwords are highlighted to make them distinguishable from the Git output. However, setting the foreground color to white makes the password hardly readable when a "black on white" color scheme is used. Drop the hardcoded foreground color and use the bold attribute only instead. Signed-off-by: Lukas Fleischer --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/password-store.sh b/src/password-store.sh index 715dc93..55a1aea 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -538,7 +538,7 @@ cmd_generate() { elif [[ $qrcode -eq 1 ]]; then qrcode "$pass" "$path" else - printf "\e[1m\e[37mThe generated password for \e[4m%s\e[24m is:\e[0m\n\e[1m\e[93m%s\e[0m\n" "$path" "$pass" + printf "\e[1mThe generated password for \e[4m%s\e[24m is:\e[0m\n\e[1m\e[93m%s\e[0m\n" "$path" "$pass" fi } -- cgit v1.2.3