Forwarding a keystroke to a shell in Shell mode

Is there a way to move a keystroke to a shell when using Shell mode? In particular, I sometimes want to use CTRL + \ for a sigkill process, but Emacs intercepts it

Another problem is that sometimes I want Tab to be redirected to the shell to get the default tab.

+4
source share
2 answers

Typically, Mx term , or even better, Mx ansi-term , provide more complete emulators than Mx shell . When you are in term-mode, you can enter char mode with Cc Cj to interact with the terminal. After you are in char mode, you can use terminal tab completion and other shortcuts on the terminal keyboard. You can return to the normal default line mode with Cc Ck .

You can learn more about the differences between these modes here.

+3
source

You can press Control-Q in front of any other key to process this key literally. So Cq C- \ or Cq TAB should do what you want.

+1
source

Source: https://habr.com/ru/post/1392841/


All Articles