diff options
author | Michał Cichoń <michcic@gmail.com> | 2015-12-10 01:02:02 +0100 |
---|---|---|
committer | Michał Cichoń <michcic@gmail.com> | 2015-12-10 01:02:02 +0100 |
commit | 20c5fc1767436ee106156a9aabf6545e72a4b519 (patch) | |
tree | e47817b21f864dd68009c9fb812037ae8ac6d51a /src/main.c | |
parent | 81ef4f32ebb07b768a7cc4a8937a624cdcdc6f80 (diff) | |
download | pianobar-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |