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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -