[TriLUG] [EMACS] clear screen in shell buffer

Brian McCullough bdmc at bdmcc-us.com
Sun Sep 30 14:29:07 EDT 2007


On Sun, Sep 30, 2007 at 08:50:17AM -0400, Robert Dale wrote:
> On 9/29/07, Andrew Ball <anball at gmail.com> wrote:
> > Does anyone know of a way to do something like clearing the screen in
> > an emacs shell buffer (from M-x shell) ?  It looks like it just implements
> > a dumb terminal, which has no idea how to clear itself, but anyone
> > who sees me use the command line will see how much I like to clear
> > the screen.
> 
> Make a macro that hits enter screen-height times?


Riiiiight.


Another answer might be to have it print the ANSI "clear screen" code to
the screen buffer. ( insert appropriate code for your terminal ) ( See
TermInfo or Termcap for more. )


B-)





More information about the TriLUG mailing list