projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc992de
)
Use * characters for hidden password input
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 4 Nov 2010 12:04:10 +0000
(13:04 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 4 Nov 2010 12:04:10 +0000
(13:04 +0100)
tools/wispr.c
patch
|
blob
|
history
diff --git
a/tools/wispr.c
b/tools/wispr.c
index
3930e3f
..
2b44288
100644
(file)
--- 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;
}