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]

Sample "clear" program


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


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