How to clear the screen with bash ?

Howarth, Richard rhowarth@sgb.co.uk
Thu Jul 2 03:20:00 GMT 1998


> Michael Hirmke wrote:
> > >> How to clear the screen with bash ?
> > >>
> > >
> > >CTRL-L.
> > 
> > MIKE-[/home/mh]_$^L
> > bash.exe: Got 12
> > : command not found
> > 
> > >
> 
> 1. You TERM variable is not set to "linux".
> 2. Missing /etc/termcap with linux terminal description.

He's acutally typing the ^L at the command prompt which bash is trying
to interperet as a command, which if it isn't aliased in some way won't
work (unless this is a feature of bash - I'm more familiar with ksh).
Another way of clearing the screen if you are using termcap/terminfo is
to use the "tput" command, "tput clear" to clear the screen.
This has the added bonus of allowing you to use all the defined terminal
capabilities such as colour, video effects and cursor positioning (if
your version of tput allows parameters) from the shell and scripts.

> 
> -- 
> Sergey Okhapkin, http://www.lexa.ru/sos
> Moscow, Russia.
> 
> -
> For help on using this list (especially unsubscribing), send 
> a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00000.bin
Type: application/vnd.ms-tnef
Size: 2748 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/19980702/08d1927b/attachment.tnef>


More information about the Cygwin mailing list