I am using the WSL and I am having an issue because of the font.
WSL has a font issue for CJK language, and I fixed it by editing the ubuntu terminal init file
https://github.com/Microsoft/WSL/issues/757
HKEY_CURRENT_USER\Console\C:_ProgramFiles_WindowsApps_CanonicalGroupLimited.UbuntuonWindows_xxxx.ubuntu.exe,
add CodePage->(DWORD)FDE9(65001)
However, when I run some text editor such like vim, emacs, nano
, or a terminal application like tmux
or screen
, the WSL always change the font to the default font of Windows cmd. Is there any way to prevent this?
echo $TERM
at my WSL, it produces xterm-256color
, but when I run it in my tmux, it produces screen
.You can change the font of the WSL terminal easily by right-clicking on the title bar and clicking on properties. Then you click on the font tab and there you can change the font. If you want another font, install it in your Windows.Screenshot
For tmux to display the correct colors of vim I set in my .vimrc set termguicolors