terminal: Font settings not working for WSL apps that draw over the entire screen

  • Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.17134.48]

  • What you’re doing and what’s happening: (Copy&paste specific commands and their output, or include screen shots)

    • Launch WSL console
    • Set default font to something other than the default font (e.g. on a system with MS Gothic as the default font, choose Source Code Pro instead in Default Values), then reopen the window;
    • Install and launch apps that redraws the entire screen (e.g. mosh, tmux, vim, etc.)
    • Exit from the app

One should not experience font change in the process

  • What’s wrong / what should be happening instead:

The font gets reverted to the default font (in my case MS Gothic) as soon as tmux gets started, and sometimes the font reverts back to the font I selected when it exits (either finishes executing and exits or detaches), sometimes it doesn’t. Setting the font in “Properties” does change the font, but the setting doesn’t get preserved.

On exit, the font gets reverted to the default one shortly, and then the window closes.

image image

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 4
  • Comments: 22 (4 by maintainers)

Most upvoted comments

Not sure if this bug has been fixed already, anyway, in my case, just changing the code page of command prompt works :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage] “ACP”=“1252” “MACCP”=“10000” “OEMCP”=“437”

having the same issue.

workaround is changing TERM=xterm-256color to TERM=xterm-color in registry DefaultEnvironment

use regedit and add CodePage=65001 in HKCU\Console\C:…Debian…exe\ solve my problem. after this launch full screen program won’t reset font again.

having the same issue.

workaround is changing TERM=xterm-256color to TERM=xterm-color in registry DefaultEnvironment

This fixes my problem. Thanks!

Not sure if this bug has been fixed already, anyway, in my case, just changing the code page of command prompt works :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage] “ACP”=“1252” “MACCP”=“10000” “OEMCP”=“437”

This worked for my Vim and Tmux after a reboot! Thx!

Not sure if this bug has been fixed already, anyway, in my case, just changing the code page of command prompt works :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage] “ACP”=“1252” “MACCP”=“10000” “OEMCP”=“437”

that works for my vim, thanks!