From: nhmall Date: Fri, 27 May 2022 20:33:22 +0000 (-0400) Subject: restrict a Windows console message to debug X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0aba9ff77e36bbd8a40c07340168fd464069f1a3;p=nethack restrict a Windows console message to debug --- 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) {