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/console.h | |
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/console.h')
-rw-r--r-- | src/console.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/console.h b/src/console.h index 4b3a073..de5d951 100644 --- a/src/console.h +++ b/src/console.h @@ -25,7 +25,8 @@ THE SOFTWARE. #define SRC_CONSOLE_H_WY8F3MNH #include "config.h" - +#include <stdio.h> +#include <stdarg.h> #include <windows.h> void BarConsoleInit (); @@ -42,4 +43,10 @@ void BarConsoleEraseLine (int mode); // 0 - from cursor, 1 - to cursor, 2 - enti void BarConsoleSetClipboard (const char*); +void BarConsoleFlush(); +void BarConsolePutc(char c); +void BarConsolePuts(const char* c); +void BarConsolePrint(const char* format, ...); +void BarConsolePrintV(const char* format, va_list args); + #endif /* SRC_CONSOLE_H_WY8F3MNH */ |