summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-08-19 17:40:10 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-08-19 17:40:10 +0200
commitbee3abbb6a6c2e70990bee4756cce948ece1e824 (patch)
treeb96bf86786793398f850cf82a0ddefb494ace589 /src/main.c
parentfeafdcc8a12c57bd98168b11c0006f1eb5eeb0ba (diff)
downloadpianobar-bee3abbb6a6c2e70990bee4756cce948ece1e824.tar.gz
pianobar-bee3abbb6a6c2e70990bee4756cce948ece1e824.tar.bz2
pianobar-bee3abbb6a6c2e70990bee4756cce948ece1e824.zip
Disable term buffering *before* doing anything else
Usename won't be printed immediately otherwise Thanks to cpatrick@github
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 3617110..65f5bfd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -81,6 +81,7 @@ int main (int argc, char **argv) {
BarTermSave (&termOrig);
BarTermSetEcho (0);
+ BarTermSetBuffer (0);
/* init some things */
ao_initialize ();
PianoInit (&ph);
@@ -114,7 +115,6 @@ int main (int argc, char **argv) {
BarUiMsg (MSG_QUESTION, "Password: ");
BarReadlineStr (passBuf, sizeof (passBuf), 1, stdin);
settings.password = strdup (passBuf);
- BarUiMsg (MSG_NONE, "\n");
}
if (settings.enableScrobbling) {
@@ -130,8 +130,6 @@ int main (int argc, char **argv) {
sizeof (ph.waith.proxyPort), tmpPath, sizeof (tmpPath));
}
- BarTermSetBuffer (0);
-
BarUiMsg (MSG_INFO, "Login... ");
if (BarUiPrintPianoStatus (PianoConnect (&ph, settings.username,
settings.password)) !=