gnome 终端中的 8 位输入

gnome 终端中的 8 位输入

我正在尝试从 切换xterm到 ,gnome-terminal但使用 Alt 键时遇到问题。我已经禁用了菜单访问键,但我仍然需要 8 位输入。在 xterm 中,我可以使用以下命令在 Xresources 中设置 8 位输入:

xterm*eightBitInput  true

是否可以设置 alt 键以在 gnome 终端中生成 8 位输入?

编辑:也可以使用xterm 菜单中meta sends escape的选项进行配置。ctrl+left click

编辑2:开始使用终结器,仍然需要8位输入。事实上,任何支持 8 位输入的基于 libvte 的终端我都会感兴趣。

答案1

参考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".

和变更日志 (补丁 #183 2003年12月26日):

修改 UTF-8 模式下资源的处理eightBitInput,将值转换为 UTF-8。否则,非法的 UTF-8 代码将发送到应用程序(Bram Moolenaar 报告)。

OP 可能正在寻找一种输入 Latin-1 范围内的代码(与 Unicode 值一致)的便捷方法。基于 VTE 的终端仿真器不会这样做。他们使用组成序列对于没有提供特殊“国家”字符的键盘的用户。 (xterm 也支持 compose)。

进一步阅读:

相关内容