Tmux 边框显示为 x q 而不是线条? [英] Tmux borders displayed as x q instead of lines?

查看:17
本文介绍了Tmux 边框显示为 x q 而不是线条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法让 tmux 显示边框线.它们是用 x 和 q 创建的.这是一个 debian 挤压服务器,区域设置为 en_US UTF8.我也尝试添加

I'm having trouble getting tmux to display lines for borders. They are being created with x and q. It's a debian squeeze server and the locale is set to en_US UTF8. I also tried adding

# instructs tmux to expect UTF-8 sequences
setw -g utf8 on
set -g status-utf8 on

到 .tmux.conf 的行.似乎没有任何效果.我不确定这是否是语言环境问题.它在其他服务器上正确显示,但在 debian 上显示不正确.我很感激你能提供的任何提示!谢谢...

lines to .tmux.conf. Nothing seems to work. I'm not sure if it's a locale issue or not. It displays correctly on other servers, but not the debian. I appreciate any tips you could offer! Thanks...

推荐答案

您的终端模拟器与 tmux 使用的 terminfo 数据库条目之间存在一些不匹配(当您启动/附加到 tmux 服务器时,由 TERM 环境变量命名.

There is some mismatch between your terminal emulator and the terminfo database entry being used by tmux (the one named by the TERM environment variable when you start/attach to a tmux server).

根据 VT100 用户指南,表 3-9:特殊图形字符,当选择特殊图形集",x用于绘制垂直条",q用于绘制水平线-扫描5".

Per the VT100 User Guide, Table 3-9: Special Graphics Characters, when the "special graphics set" is selected, x is used to draw the "Vertical bar" and q is used to draw "Horizontal line - Scan 5".

terminfo 下,VT100 特殊图形字符可用作备用字符集功能的一部分;请参阅terminfo(5) 手册页.

Under terminfo, the VT100 special graphics characters are available as a part of the Alternate Character Set functionality; see the "Line Graphics" section of the terminfo(5) man page.

可能(在您的 Debian 服务器上)有效的terminfo 数据库条目表明 ACS 可用,但您的终端模拟器实际上并未响应指定的控制序列.

Probably (on your Debian server) the effective terminfo database entry indicates that ACS is available, but your terminal emulator is not actually responding to the specified control sequences.

tmux CHANGES 文件表明某些终端仿真器(例如 Putty)在 UTF-8 模式下不遵守 ACS 控制序列.因此,tmux 1.4 有一个变化,当附加客户端指定它可以处理 UTF-8 时(即附加时,-u<给出了/code> 或 UTF-8 出现在 LC_ALL、LC_CTYPE 或 LANG 中;utf8 窗口选项是关于 tmux 应该期待什么它运行的程序,而不是它可以发送到附加客户端的程序).

The tmux CHANGES file indicates that some terminal emulators (e.g. Putty) do not respect the ACS control sequences when they are in UTF-8 mode. Thus, tmux 1.4 has a change that makes it always use UTF-8 characters instead of ACS sequences when the attaching client specifies that it can handle UTF-8 (i.e. when attaching, -u was given or UTF-8 is present in LC_ALL, LC_CTYPE or LANG; the utf8 window option is about what tmux should expect from the programs it runs, not what it can send to the attached client).

Debiansqueeze"只包括tmux 1.3,所以你的tmux 可能没有首选 UTF-8 线描"功能(除非它来自 backports 源).

Debian "squeeze" only includes tmux 1.3, so your tmux probably does not have the "prefer UTF-8 line drawing" feature (unless it pulls from a backports source).

如果您无法修复终端模拟器,也无法升级到至少 tmux 1.4,那么您或许可以使用 tmuxterminal-overrides 选项取消设置与 ACS 相关的功能,以便 tmux 将回退到 ASCII 线图.在你的 .tmux.conf(在 Debian 系统上):

If you can not fix your terminal emulator nor upgrade to at least tmux 1.4, then you might be able to use tmux’s terminal-overrides option to unset the ACS-related capabilities so that tmux will fall back to ASCII line drawing. In your .tmux.conf (on the Debian system):

set-option -ga terminal-overrides ',*:enacs@:smacs@:rmacs@:acsc@'

这篇关于Tmux 边框显示为 x q 而不是线条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆