texthook: explicitly flush stdout every line

This commit is contained in:
kichikuou
2019-09-09 08:44:14 +09:00
parent bde689eaa1
commit 4be8dc5344
+2
View File
@@ -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++;
}
}