summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-03-09 10:13:01 +0100
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-03-09 10:13:01 +0100
commit9d753bf7f9ee0e2b56be5b13b7e6f26f11938235 (patch)
treeaaa580f6b010d88ab1f03ac03a488b3af956f317 /src/main.c
parent0c6860fdf282e871a11f7a859e672231455dd94c (diff)
downloadpianobar-9d753bf7f9ee0e2b56be5b13b7e6f26f11938235.tar.gz
pianobar-9d753bf7f9ee0e2b56be5b13b7e6f26f11938235.tar.bz2
pianobar-9d753bf7f9ee0e2b56be5b13b7e6f26f11938235.zip
Use icon for questions too
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index d7589ed..c1d904b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -80,11 +80,13 @@ int main (int argc, char **argv) {
BarSettingsRead (&settings);
if (settings.username == NULL) {
- settings.username = readline ("Username: ");
+ BarUiMsg (MSG_QUESTION, "Username: ");
+ settings.username = readline (NULL);
}
if (settings.password == NULL) {
BarTermSetEcho (0);
- settings.password = readline ("Password: ");
+ BarUiMsg (MSG_QUESTION, "Password: ");
+ settings.password = readline (NULL);
BarTermSetEcho (1);
BarUiMsg (MSG_NONE, "\n");
}