summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMichał Cichoń <michcic@gmail.com>2015-12-10 01:02:02 +0100
committerMichał Cichoń <michcic@gmail.com>2015-12-10 01:02:02 +0100
commit20c5fc1767436ee106156a9aabf6545e72a4b519 (patch)
treee47817b21f864dd68009c9fb812037ae8ac6d51a /src/main.c
parent81ef4f32ebb07b768a7cc4a8937a624cdcdc6f80 (diff)
downloadpianobar-windows-20c5fc1767436ee106156a9aabf6545e72a4b519.tar.gz
pianobar-windows-20c5fc1767436ee106156a9aabf6545e72a4b519.tar.bz2
pianobar-windows-20c5fc1767436ee106156a9aabf6545e72a4b519.zip
Use custom function to feed console instead of trying to be clever and capturing stdout.
This fixes IO on Windows 8 and Windows 10.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 99793f3..f0172da 100644
--- a/src/main.c
+++ b/src/main.c
@@ -77,7 +77,7 @@ static bool BarMainGetLoginCredentials (BarSettings_t *settings,
BarUiMsg (settings, MSG_QUESTION, "Password: ");
BarReadlineStr (passBuf, sizeof (passBuf), rl, BAR_RL_NOECHO);
/* write missing newline */
- puts ("");
+ BarConsolePuts("");
settings->password = strdup (passBuf);
} else {
//pid_t chld;