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: clear screen?


john.cooper@digitivity.com writes:
> 
> Is there a command to clear the screen when using bash?
> 
> `type clear' and `type cls' reveal nothing.
> 
> Thanks,
> 
>     --- John
> 

Try adding the following function definition to your .profile (which
gets processed when bash is started with the `-login' switch):

  clear () { command.COM /c cls ; }
  export -f clear

It's crude (and slow), but it does work.

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


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