3

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.

itsjeyd
  • 4,739
  • 2
  • 26
  • 47
user3682928
  • 53
  • 1
  • 4
  • 3
    Some of the links in [this answer](http://stackoverflow.com/a/11118511/113848) might help. – legoscia Jun 19 '14 at 16:16
  • Or [this one](https://emacs.stackexchange.com/a/13957), a very detailed, nice explanation from emacs.stackexchange.com. – Sz. Sep 09 '19 at 00:40

1 Answers1

4

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

Community
  • 1
  • 1
Dan
  • 4,807
  • 1
  • 20
  • 31