From 3896a4bf64824b2ad5bfe96df7d9265ae49bd0b6 Mon Sep 17 00:00:00 2001 From: M G Berberich Date: Sun, 6 Aug 2023 16:30:45 +0200 Subject: [PATCH] flush the progress output on every line flush the progress output on every line, so it is written to the terminal instantly. --- src/app/opengl/window.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/opengl/window.cpp b/src/app/opengl/window.cpp index 1de79ecc3..f2aa9c60b 100644 --- a/src/app/opengl/window.cpp +++ b/src/app/opengl/window.cpp @@ -68,6 +68,7 @@ static void window_display_text(int x, int y, const char *text) if (text != last_text) { printf("%s\n", text); + fflush(stdout); last_text = text; } #endif