问题描述
限时送ChatGPT账号..它刚刚发生在我的 Lion 系统上,我正在使用 zsh 和 tmux
it just happened on my Lion system, I am using zsh with tmux
在 zsh shell 中正常
normal in the zsh shell
tmux 屏幕中的双倍空间
double space in tmux screen
我是否缺少 zsh 或 tmux 中的某些配置?
am I missing some config in zsh or tmux?
推荐答案
使用 -u 选项启动 tmux 以实现 unicode 功能.请参阅此问题.
Start tmux with the -u option for unicode functionality. See this issue.
来自man tmux
:
-u
tmux 尝试通过检查 LC_ALL、LC_CTYPE 和为字符串UTF-8"设置的 LANG 环境变量.这并不总是正确的: -u 标志明确通知 tmux 支持 UTF-8.
tmux attempts to guess if the terminal is likely to support UTF-8 by checking the first of the LC_ALL, LC_CTYPE and LANG environment variables to be set for the string "UTF-8". This is not always correct: the -u flag explicitly informs tmux that UTF-8 is supported.
如果服务器是从客户端通过 -u 或检测到 UTF-8 启动的,则 utf8 和 status-utf8 选项是分别在全局窗口和会话选项中启用.
If the server is started from a client passed -u or where UTF-8 is detected, the utf8 and status-utf8 options are enabled in the global window and session options respectively.
这篇关于在 Mac OS Lion 上使用 tmux 提示之前的奇怪空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论