Use * characters for hidden password input
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Nov 2010 12:04:10 +0000 (13:04 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 4 Nov 2010 12:04:10 +0000 (13:04 +0100)
tools/wispr.c

index 3930e3f..2b44288 100644 (file)
@@ -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;
 }