环境:
奇怪的行为:
有什么方法让它总是显示垂直线吗?
我的tmux.conf
set -g utf8
setw -g utf8 on
set-option -g mode-mouse on
set-option -g mouse-resize-pane on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
# I've tried the following three settings, all failed.
set -g default-terminal "screen-256color"
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#set -g default-terminal "linux"以及tmux中的术语和地区变量。
$ echo $TERM
screen-256color
$ locale
LANG=en_US.utf8
LC_CTYPE=zh_TW.utf8发布于 2014-09-05 08:26:12
在putty/pietty中,关闭选项change settings/Window/Translation/Treat CJK ambiguous characters as wide
发布于 2014-08-11 16:01:13
来自tmux手册页:
对于在tmux中运行的所有程序,必须将术语环境变量设置为“屏幕”。新窗口将自动将‘TERM=screen’添加到它们的环境中,但是必须注意不要在shell启动文件中重置。
也许试着改变这个看看能不能帮上忙?
我见过其他用户通常在他们的.tmux.conf中设置这个选项,所以他们也得到了颜色支持:
set -g default-terminal 'screen-256color'https://stackoverflow.com/questions/25236584
复制相似问题