I cannot using the command "clear" to clear the screen in emacs shell mode as I can in the linux terminal. So how can I do it?

link|improve this question

65% accept rate
feedback

2 Answers

up vote 0 down vote accepted

Shell mode is not a terminal emulator, the way that M-x term is, so "clear" does not have meaning there.

link|improve this answer
What's the difference between term and shell in emacs? – Kim Aug 14 '11 at 6:59
1  
term is a full blown terminal emulator think of it as xterm running in emacs where as shell is just a basic pipe to bash. – Hamza Yerlikaya Aug 14 '11 at 8:03
feedback

Read my comment to John Wiegley, unless you use term clear won't work you can however just to C-x-h which will select all text in buffer and hit delete.

link|improve this answer
I use M-x erase-buffer to clean up a huge shell buffer. – Juancho Aug 14 '11 at 17:04
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.