summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
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");
}