This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] Updated: run-1.1.11-1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Charles Wilson on 8/17/2009 12:42 PM:
> Okay, so here's another idea:
>
> And in configure_startupinfo():
>
> /* foo() is some magic mechanism for determining that the HANDLEs
> * returned by GetStdHandle() are from a console, and not redirected
> * or ptys of some sort.
See this thread on the gnulib list, which claims that you can use this
undocumented snippet to decide whether a HANDLE is a console:
> #define IsHandleConsole(h) (((long) (h) & 3) == 3)
http://lists.gnu.org/archive/html/bug-gnulib/2009-08/msg00065.html
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqNQpoACgkQ84KuGfSFAYCSgwCff6FRyUtbRdJWK0vau6Jq8kv/
970AoNhYm2+Fb9XbNA4ik4HuyDXKlZPy
=6ssX
-----END PGP SIGNATURE-----
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple