]> granicus.if.org Git - nethack/commitdiff
restrict a Windows console message to debug
authornhmall <nhmall@nethack.org>
Fri, 27 May 2022 20:33:22 +0000 (16:33 -0400)
committernhmall <nhmall@nethack.org>
Fri, 27 May 2022 20:33:22 +0000 (16:33 -0400)
sys/windows/consoletty.c

index 7d3c2e36aa838ae2f5a72b359de3e8d5b42a801c..648817340277aec36493c49d0903ca6f66f9e230 100644 (file)
@@ -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) {