This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Sample "clear" program
- To: cygwin@sourceware.cygnus.com
- Subject: Sample "clear" program
- From: "Jason Meade" <marlaque@hotmail.com>
- Date: Mon, 06 Sep 1999 08:57:57 PDT
Here's a sample "clear" command written in c++ for Cygnus. Paste this into a
text file called "clear.cpp". Type "c++ clear.cpp -o clear.exe" at the
BASH-EXE.2.02$ prompt. After compiling put clear.exe in the
/cygnus/cygwin-b20/H-i586-cygwin32/bin directory. Now when you type "clear"
the screen will clear and return your prompt for you automatically.
Unfortunately the prompt will return towards the bottom of the BASH window.
O well, haven't solved that one yet.
-Jason Meade
--------------------------------------------------------------
#include <iostream.h>
int main()
{
int counter = 0;
while ( counter <=24 ) {
cout << " " << endl;
counter++;
}
return 0;
}
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com