This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to clear the screen with bash ?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]