From 20c5fc1767436ee106156a9aabf6545e72a4b519 Mon Sep 17 00:00:00 2001 From: Michał Cichoń Date: Thu, 10 Dec 2015 01:02:02 +0100 Subject: Use custom function to feed console instead of trying to be clever and capturing stdout. This fixes IO on Windows 8 and Windows 10. --- src/console.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/console.h') 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 +#include #include 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 */ -- cgit v1.2.3