From 4be8dc53449ac66e3b2ec7d34a96a48b2ab8c5b7 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Mon, 9 Sep 2019 08:44:14 +0900 Subject: [PATCH] texthook: explicitly flush stdout every line --- src/texthook.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/texthook.cpp b/src/texthook.cpp index a76e5a3..e446f0f 100644 --- a/src/texthook.cpp +++ b/src/texthook.cpp @@ -45,6 +45,7 @@ void texthook_character(int page, int c) { void texthook_newline(void) { if (newlines < 2) { putchar('\n'); + fflush(stdout); newlines++; } } @@ -52,6 +53,7 @@ void texthook_newline(void) { void texthook_nextpage(void) { while (newlines < 2) { putchar('\n'); + fflush(stdout); newlines++; } }