summaryrefslogtreecommitdiff
path: root/src/ui_act.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/ui_act.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/ui_act.c')
-rw-r--r--src/ui_act.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui_act.c b/src/ui_act.c
index 54167f8..4206a33 100644
--- a/src/ui_act.c
+++ b/src/ui_act.c
@@ -32,6 +32,7 @@ THE SOFTWARE.
#include "ui.h"
#include "ui_readline.h"
#include "ui_dispatch.h"
+#include "console.h"
/* standard eventcmd call
*/
@@ -691,7 +692,7 @@ BarUiActCallback(BarUiActSettings) {
modified = true;
}
/* write missing newline */
- puts ("");
+ BarConsolePuts("");
break;
}