Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 1 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
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

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

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

I'm on Hadoop 2.5 and HBase 0.95. You can use system("clear") on hbase shell

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .