delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/27/21:16:33

From: vischne AT ibm DOT net
Subject: clear.c program that clears cygwin screen and disconnects keyboard
27 Dec 1997 21:16:33 -0800 :
Message-ID: <199712280500.FAA02704.cygnus.gnu-win32@out2.ibm.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

As the caption promised, the following is a supposedly correct clear.exe
program that clears the bash$ window, but leaves the cygwin keyboard
not working.  Try it and see for yourself.

clear.c:
=========================================================================
#include <stdio.h>

int main (int argc, char **argv)
{
	/* ansi.sys (and Linux) clear screen command: */
	return printf("\e[2J");
}
=========================================================================


-
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