From ab1f20eb3b97458d7747c26feae77a6dd0399485 Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Mon, 4 Oct 2021 00:17:21 -0300 Subject: [PATCH] Allow PRINT to show content in console even without a new line Closes #74 --- internal/c/libqb.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/c/libqb.cpp b/internal/c/libqb.cpp index 47b4d9652..4976b5731 100644 --- a/internal/c/libqb.cpp +++ b/internal/c/libqb.cpp @@ -10653,6 +10653,9 @@ void qbs_print(qbs* str,int32 finish_on_new_line){ static qbs* strz; if (!strz) strz=qbs_new(0,0); qbs_set(strz,qbs_add(str,qbs_new_txt_len("\0",1))); if (finish_on_new_line) cout<<(char*)strz->chr<chr; + #ifndef QB64_WINDOWS + std::cout.flush(); + #endif return; }