From 56e880117efc1d8d95663a1a2ef165693d01d335 Mon Sep 17 00:00:00 2001 From: Nicolas Sauzede Date: Sat, 21 Sep 2019 00:29:11 +0200 Subject: [PATCH] fix windows printf output to match standard unix line buffering --- compiler/main.v | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/main.v b/compiler/main.v index 364453bb4d..6342d326de 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -372,6 +372,7 @@ _setmode(_fileno(stdin), mode); _setmode(_fileno(stdout), _O_U8TEXT); SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), ENABLE_PROCESSED_OUTPUT | 0x0004); // ENABLE_VIRTUAL_TERMINAL_PROCESSING +setbuf(stdout,0); #endif g_str_buf=malloc(1000); $consts_init_body