If I understand correctly, when running bash under M-x shell
, Emacs overrides some of the bash keyboard bindings, and can make some bash commands and features not work as in "native bash" (for an example see this thread)
One of the commands that I use frequently in bash is clear-screen (bounded to Ctrl-l
by default ).
Is there an easy way of asking Emacs to reproduce the same behavior in shell-mode
so that I can clear my bash screen within Emacs?
I know I can always use M-x term
to get a real terminal, but I would like to work out a solution for M-x shell
EDIT: When I type C-l C-l
, Emacs moves the current line to the top of the window, but as soon as I enter a new command in bash, the window is scrolled again to the original position.
Thanks