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: Can't clear the display


Hi Tron,

>I just download bash 2.02, and have been trying it out.  I like what
>I've seen so far expect for one important thing.  I can't seem to clear
>the screen.  I'm using to using "clear" command when I using bash on
>Linux, and "CLS" when I'm at a DOS prompt, but neither one of these
>commands works.  Is this not supportted?  It seems like it would be a
>simple enough thing to implement.
>
>Please respond directly to me, if possible, as I am not on the mailing
>list.

The clear command is part of the ncurses package.
There is another possibility, though: You can echo the appropriate
escape sequence to the screen and it will get cleared, too.

Write a small programm yourself:

#include <stdio.h>
int main() {
  printf("\033[2J");
}


Bye.
Michael.
-- 
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh@mike.franken.de
                         | WWW     http://aquarius.franken.de/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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