rxvt pops up console with 2001-Aug-07 shapshot

Corinna Vinschen vinschen@redhat.com
Wed Aug 22 04:20:00 GMT 2001

On Wed, Aug 22, 2001 at 12:18:06PM +0400, egor duda wrote:
> i use this simple program in such cases.
> #include <windows.h>
> #define TITLESIZE 1024
> int
> main (int argc, char** argv)
> {
>   HWND console;
>   char old_title [TITLESIZE];
>   char new_title [TITLESIZE];
>   if (!GetConsoleTitle (old_title, TITLESIZE))
>     return 1;
>   sprintf (new_title, "cygwin.hide.%d", GetCurrentProcessId ());
>   SetConsoleTitle (new_title);
>   Sleep (40);
>   console = FindWindow (NULL, new_title);
>   SetConsoleTitle (old_title);
>   ShowWindow (console, SW_HIDE);
> }

So you don't destroy the window but simply hide it, right?

> KF> I think inetd and cygrunsrv shouldn't invoke AllocConsole() and
> KF> the problem with windows popping up should be solved by Egor's
> KF> ttyfier.
> ttyfier is designed to run interactive applications. if you want to
> run, say, 'net start some_service', which creates new console in case
> it's not available, it's fine. but if you'll run it with redirected
> output, e.g 'tfy net start some_service >> service.log', you won't see
> in service.log what you should normally expect.

I don't understand what ttyfier has to do with that problem. Please
enlighten me!


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

More information about the Cygwin-developers mailing list