delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/20/11:51:08

From: vischne AT ibm DOT net
Subject: Why would clear.exe persist after exiting?
20 Dec 1997 11:51:08 -0800 :
Message-ID: <199712201940.TAA93412.cygnus.gnu-win32@out4.ibm.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

I wrote and compiled the following program as a ming32 CRTDLL.DLL program
using the slangw32 version of libslang.

When I tested it under the Dos prompt, it worked perfectly.  When I ran
it under bash$, the mouse pointer retained the hourglass after clear.exe
ran, and, pushing CTRL-ALT-DEL (the three-finger salute) showed that
clear and rnaapp were still present, even though running ps.exe did not
show that.

Command line for compiling:

bash$ gcc -O -o clear clear.c -lslang

(libtermcap not needed here)

Program code:
=========================================================================
void SLtt_cls (void);
int SLang_init_tty (int, int, int);

int main (int argc, char **argv)
{
 SLang_init_tty (0, 0, 0);
 SLtt_cls();
 return 0;
}
==========================================================================
-
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