Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <19990906155757.11576.qmail@hotmail.com> X-Originating-IP: [209.156.37.60] From: "Jason Meade" To: cygwin AT sourceware DOT cygnus DOT com Subject: Sample "clear" program Date: Mon, 06 Sep 1999 08:57:57 PDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed 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 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 AT sourceware DOT cygnus DOT com