shared/ask-password-api: show "(press TAB for no echo)"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 Feb 2020 08:50:35 +0000 (09:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 Feb 2020 09:51:24 +0000 (10:51 +0100)
commit8aaf18e08a2ee95a1d2687fbfdb584548375b5e1
tree1f2291b932f79c617edbe607f0e250ab3c1f8d1a
parent72c08a471c9ccb65209b72ea539acefe17c33245
shared/ask-password-api: show "(press TAB for no echo)"

For #8495: it is arguably useful to not show the length of the password
in public spaces. It is possible to press TAB or BS to cancel the asterisks,
but this is not very discoverable. Let's make it discoverable by showing
a message (in gray). The message is "erased" after the first character
is entered.
src/shared/ask-password-api.c
src/test/test-ask-password-api.c