From 97916007efe4fdb0f6d8e0018267620c3be59e5a Mon Sep 17 00:00:00 2001 From: nhmall Date: Sun, 12 May 2024 08:12:30 -0400 Subject: [PATCH] restrict font fallback to legacy Windows console It was misbehaving with ENHANCED_SYMBOLS so restrict the font fallback to the legacy Windows console for now. --- sys/windows/consoletty.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/sys/windows/consoletty.c b/sys/windows/consoletty.c index 0c40e18b3..e430033ce 100644 --- a/sys/windows/consoletty.c +++ b/sys/windows/consoletty.c @@ -2097,16 +2097,20 @@ static int CALLBACK EnumFontCallback( void check_and_set_font(void) { +#ifndef VIRTUAL_TERMINAL_SEQUENCES if (!check_font_widths()) { - const char *msg = "WARNING: glyphs too wide in console font." - " Changing code page to 437 and font to Consolas"; + if (wizard) { + const char *msg = "WARNING: glyphs too wide in console font." + " Changing code page to 437 and font to Consolas"; - if (iflags.window_inited) - pline ("%s", msg); - else - raw_printf("%s\n", msg); + if (iflags.window_inited) + pline ("%s", msg); + else + raw_printf("%s\n", msg); + } set_known_good_console_font(); } +#endif } /* check_font_widths returns TRUE if all glyphs in current console font