Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

3 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.

share|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
add comment

you can use C-L, it actually does not clear the screen, but moves the whole screen to up, and that make it look like you really cleared the screen

share|improve this answer
add comment

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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