I wish to achieve what a C-c
(send a keyboardinterrupt) would do in a terminal outside of Emacs. How do I do that in Emacs shell mode?
1 Answer
In Shell mode (and many other modes that run an external command interpreter), press C-c C-c
(comint-interrupt-subjob
). That's the C-c
prefix of mode-specific commmands, followed by C-c
which is chosen to be like C-c
in a plain terminal.
C-c
behavior outside Emacs is, to make this Q&A more helpful for others. Thx.