This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: How to clear the screen with bash ?
- To: gnu-win32 at cygnus dot com
- Subject: RE: How to clear the screen with bash ?
- From: "Howarth, Richard" <rhowarth at sgb dot co dot uk>
- Date: Thu, 2 Jul 1998 08:43:24 +0100
> 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".
>
application/ms-tnef