你好,我有以下TMUX配置:
set -sg escape-time 50 # https://github.com/microsoft/WSL/issues/5931
set-option -sa terminal-overrides ",xterm-256color:RGB"
set -g mouse on
bind -n M-H previous-window
bind -n M-L next-window
# set prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Start indexing from 1
set -g base-index 1
setw -g pane-base-index 1
# Ensure window index numbers get reordered on delete.
set-option -g renumber-windows on
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tmux-yank'
# set vi-mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
run '~/.tmux/plugins/tpm/tpm'但是windows终端不能正确地呈现提示。我的结果如下:

您可以看到一些字符呈现不正确,颜色也不太好。
你能给我建议一下我应该查些什么吗?
发布于 2023-06-01 13:38:42
在我看来,使用的字体不能显示象形文字。需要一个带有扩展字符的特殊字体来显示在右边状态栏中使用的特殊字符。
你使用的是插件catppuccin/tmux。在自述文件中可以找到以下段落:
为了有正确的图标显示,请使用您最喜欢的书呆子字体补丁字体。
请确保为您的Windows终端安装和配置书呆子字体。
作为另一种选择,您可以通过配置其他字符来避免使用特殊字符。您可以尝试将这些选项添加到tmux配置中:
set -g @catppuccin_datetime_icon "A"
set -g @catppuccin_user_icon "B"
set -g @catppuccin_directory_icon "C"
set -g @catppuccin_window_icon "D"
set -g @catppuccin_session_icon "E"
set -g @catppuccin_host_icon "F"https://serverfault.com/questions/1132264
复制相似问题