From 264728245a51346bc86884cddc96e85c478310ad Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 4 Nov 2010 13:04:10 +0100 Subject: [PATCH] Use * characters for hidden password input --- tools/wispr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/wispr.c b/tools/wispr.c index 3930e3f..2b44288 100644 --- a/tools/wispr.c +++ b/tools/wispr.c @@ -337,6 +337,9 @@ static gboolean keyboard_input(GIOChannel *channel, GIOCondition condition, g_string_append_c(data->str, buf[0]); + if (data->hidden == TRUE) + len = write(data->fd, "*", 1); + return TRUE; } -- 2.7.4