delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/02/19:36:33

From: dbe AT wgn DOT net ("$Bill Luebkert")
Subject: Re: clear screen?
2 Jul 1997 19:36:33 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33BAFBA2.2AF1.cygnus.gnu-win32@wgn.net>
References: <199707020624 DOT CAA16082 AT solid DOT ssd DOT ornl DOT gov>
Reply-To: dbe AT wgn DOT net
Mime-Version: 1.0
X-Mailer: Mozilla 3.01Gold (Win95; I)
Original-To: Wei Ku <weiku AT UTKUX1 DOT UTK DOT EDU>
Original-CC: GNU-Win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Wei Ku wrote:
> 
> Hello, $Bill:
> 
> Sorry to say this: the second way you mentioned does not work:
> 
> > 2) compile this into clear.exe or cls.exe:
> >         #include <stdio.h>
> >         int main () { printf("033[2J"); }

Sure it does, that's what I use.  Course it helps if when 
you cut and paste you don't lose a char.  :)

	printf("\033[2J");

The \ got lost somewhere.

-- 
  ,-/-  __      _  _         $Bill Luebkert
 (_/   /  )    // //       DBE Collectibles
  / ) /--<  o // //      http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_    Email: dbe AT wgn DOT net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019