Emacs M-x shell and the overriding of bash keyboard bindings -
if understand correctly, when running bash under m-x shell
, emacs overrides of bash keyboard bindings, , can make bash commands , features not work in "native bash" (for example see this thread)
one of commands use in bash clear-screen (bounded ctrl-l
default ).
is there easy way of asking emacs reproduce same behavior in shell-mode
can clear bash screen within emacs?
i know can use m-x term
real terminal, work out solution m-x shell
edit: when type c-l c-l
, emacs moves current line top of window, enter new command in bash, window scrolled again original position.
thanks
just type m-> go bottom of buffer (if necessary), c-l c-l move current line top of window. looks if you've cleared screen, of content have been erased still present above top of window.
edit:
to keep emacs scrolling window described, put in .emacs
file:
(remove-hook 'comint-output-filter-functions 'comint-postoutput-scroll-to-bottom)
i found behavior irritating well.
Comments
Post a Comment