From 0aba9ff77e36bbd8a40c07340168fd464069f1a3 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 27 May 2022 16:33:22 -0400 Subject: [PATCH] restrict a Windows console message to debug --- sys/windows/consoletty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/windows/consoletty.c b/sys/windows/consoletty.c index 7d3c2e36a..648817340 100644 --- a/sys/windows/consoletty.c +++ b/sys/windows/consoletty.c @@ -2180,7 +2180,8 @@ restore_original_console_font(void) raw_print("Restoring original font and code page\n"); success = SetConsoleOutputCP(console.original_code_page); #else /* VIRTUAL_TERMINAL_SEQUENCES */ - raw_print("Restoring original font, code page and locale\n"); + if (wizard) + raw_print("Restoring original font, code page and locale\n"); tmplocalestr = setlocale(LC_ALL, console.orig_localestr); if (tmplocalestr) {