diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-08-19 17:40:10 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-08-19 17:40:10 +0200 |
commit | bee3abbb6a6c2e70990bee4756cce948ece1e824 (patch) | |
tree | b96bf86786793398f850cf82a0ddefb494ace589 /src/main.c | |
parent | feafdcc8a12c57bd98168b11c0006f1eb5eeb0ba (diff) | |
download | pianobar-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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)) != |