docker容器内部运行的tmux prints ^[[a, ^[b, ^[c,and ^[[d for arrow键
我有一个在Ubuntu机器上运行的Docker容器;但是,当我在该码头容器内运行Tmux时,有几个症状:
- 提示字符串更改为
$
(如 this 问题) - 上下箭头键打印
^[[a
and^[[B
而不是浏览命令历史 - 记录TAB键不会按预期进行自动完成,而是打印一个实际选项卡。
颜色表现良好。
我的.tmux.conf
包含以下内容:set -g default-terminal“ screen-256color”
我的环境变量(在docker容器中)应正确设置。 lang = en_us.utf-8
$ term ='Screen -256Color'
我尝试了tmux -u new
,如上所述的问题。
我正在通过当地机器的终端进入这台Ubuntu机器。
I have a docker container running on an ubuntu machine; however, when I run tmux inside that docker container, there are several symptoms:
- the prompt string changes to
$
(as in this question) - the up and down arrow keys print
^[[A
and^[[B
instead of scrolling through command history - the tab key does not do auto-completion as expected, but rather prints an actual tab.
Colors are displaying fine.
My .tmux.conf
contains the following: set -g default-terminal "screen-256color"
My environment variables (within the docker container) should be set correctly.LANG=en_US.UTF-8
$TERM='screen-256color'
I have tried tmux -u new
, as in the question linked above.
I am ssh-ing into this ubuntu machine via my local machine's terminal.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论