This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Console Hiding (was:xterm is a console program?)
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Tue, 20 May 2003 21:50:23 -0400
- Subject: Re: Console Hiding (was:xterm is a console program?)
- References: <bae48j$vjd$1@main.gmane.org>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
On Tue, May 20, 2003 at 03:49:03PM -0500, Early Ehlinger wrote:
>"Harold L Hunt II" <huntharo@msu.edu> wrote:
>> In general reply, could you repost (in a new thread) a description of
>> your work-around and any source code involved? The source code doesn't
>> have to be readily compilable (i.e., we don't need a Makefile), but I
>> would like to see it to be able to evaluate the nature of the solution.
>
>The code is attached.
>
>It demonstrates a few techniques:
>
>1. A portable GetConsoleWindow function (GetConsoleHWND) that should work on
>all Cygwin-supported flavors of Windows.
The Cygwin DLL already uses something similar. Your code is a little
too simplistic to be reliable, however. You are not accounting for the
fact that the title change takes some time to "settle down". You need
to check repeatedly in a loop, waiting between each check.
cgf