non*_*one 6 ubuntu terminal xterm gnome-terminal
我正在尝试从 切换xterm到gnome-terminal但在使用 alt 键时遇到问题。我已经禁用了菜单访问键,但我仍然需要 8 位输入。在 xterm 中,我可以使用以下方法在 Xresources 中设置 8 位输入;
xterm*eightBitInput true
Run Code Online (Sandbox Code Playgroud)
是否可以设置 alt 键以在 gnome-terminal 中生成 8 位输入?
编辑:它也是使用配置选项meta sends escape从ctrl+left click在xterm的菜单。
编辑2:开始使用终结器,仍然需要8位输入。事实上,任何支持 8 位输入的基于 libvte 的终端我都会感兴趣。
参考xterm手册
eightBitInput (class EightBitInput)
If "true", Meta characters (a single-byte character combined
with the Meta modifier key) input from the keyboard are pre-
sented as a single character, modified according to the eight-
BitMeta resource. If "false", Meta characters are converted
into a two-character sequence with the character itself pre-
ceded by ESC. The default is "true".
Run Code Online (Sandbox Code Playgroud)
和变更日志(补丁#183 2003/12/26):
修改
eightBitInputUTF-8 模式下资源的处理,将值转换为 UTF-8。否则,非法的 UTF-8 代码将发送到应用程序(Bram Moolenaar 报告)。
OP 可能正在寻找一种输入 Latin-1 范围内的代码(与 Unicode 值一致)的便捷方法。基于 VTE 的终端仿真器不会这样做。他们为没有提供特殊“国家”字符的键盘的用户使用撰写序列。(xterm 也支持 compose)。
进一步阅读:
| 归档时间: |
|
| 查看次数: |
1495 次 |
| 最近记录: |