周凯修:

在我的情况中,我注意到界面的乱码只有在我使用 tmux 的时候才会出现,而直接使用终端模拟器就不会有问题。后来我通过将下面几行从 ~/.tmux.conf 中注释掉解决了问题:

# set -g default-terminal "screen-256color"

# set-option -ga terminal-overrides ",tmux-256color:Tc"

# set -g default-terminal "xterm-256color"