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: bash and the missing clear command


dougk@primenet.com wrote:

> I'm looking for a "clear" command under bash that will clear the screen in
> the same way that cls does in a DOS session.  All I can think of at the
> moment is creating a function that echo's the ANSI clear screen control
> sequence, but would rather not make ansi.sys a requirement for this
> application.

> Anyone tackle this problem already?

> Doug

> --
> -----------------------------------------------------------
> dougk@primenet.com
> -----------------------------------------------------------

> -
> For help on using this list, send a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".

 
The way i found to clear the screen is add an alias to the .bashrc simillar to:
alias clear="command.com /c cls"
this seems to work fine under win95 as long as command.com is in your PATH, however i'm not shure how you would do it under NT.

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