Emacs键绑定在终端仿真器中发生变化 [英] Emacs key bindings change in terminal emulator

查看:125
本文介绍了Emacs键绑定在终端仿真器中发生变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到终端仿真器( xfce4-terminal )中的一些Emacs密钥绑定发生变化。



TTY下的M-SPC 设置标记,但在 xfce4-terminal 中,它不执行任何操作。



另外:




  • C - undo 在TTY中,终端模拟器中没有任何东西

  • C - / 在TTY中向后删除char,而 undo 在终端模拟器中



有什么解决方案可以防止学习两个规则的负担?我只想在TTY控制台中像往常一样。

解决方案

这不是一个Emacs问题,因为终端问题。终端仿真器可以限制在他们可以发送的控制和转义序列中,所以可能的情况是,您引用的仿真器在甚至达到Emacs之前吞咽了您的特殊字符。尝试点击 Ch l (或 Mx view-lossage ),看看你的组合是否到达Emacs。 p>

除了 answer ,Legoscia引用,也查看这个线程这个线程



除非你有很强的理由留在终端,否则可能会考虑运行GUI版本,然后运行其中的各种shell(例如, shell eshell ansi-term )。


I notice that some Emacs key bindings change in terminal emulator (xfce4-terminal).

For example: M-SPC under TTY sets the mark, but in xfce4-terminal it does nothing.

Also:

  • C-- is undo in TTY and does nothing in terminal emulator
  • C-/ is erase char backward in TTY, and undo in terminal emulator

Is there any solution to prevent the burden of learning two rules? I just want them as usual in TTY console.

解决方案

It's not an Emacs problem so much as a terminal problem. Terminal emulators can be limited in the control and escape sequences they can send, so it's probably the case that the emulators you cited are swallowing your special characters before they even reach Emacs. Try hitting C-h l (or M-x view-lossage) to see if your key combinations are arriving in Emacs.

In addition to the answer that Legoscia cited, also check out this thread and this thread.

Unless you have a strong reason to stay in a terminal, you might consider running the GUI version and then running one of the various shells within it (eg, shell, eshell, ansi-term).

这篇关于Emacs键绑定在终端仿真器中发生变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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