Emacs key bindings change in terminal emulator

喜欢而已 提交于 2019-12-19 10:24:44

问题


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.


回答1:


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).



来源:https://stackoverflow.com/questions/24309580/emacs-key-bindings-change-in-terminal-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!