From bee3abbb6a6c2e70990bee4756cce948ece1e824 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 19 Aug 2009 17:40:10 +0200 Subject: Disable term buffering *before* doing anything else Usename won't be printed immediately otherwise Thanks to cpatrick@github --- src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main.c') 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)) != -- cgit v1.2.3