X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Sven_K=F6hler?= Subject: Re: rvxt-20050409-1 console problem Date: Mon, 15 May 2006 17:54:21 +0200 Lines: 77 Message-ID: References: <44689C8D DOT A2E6459C AT dessent DOT net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF9FBA5C678D2620D69EB9824" User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) In-Reply-To: <44689C8D.A2E6459C@dessent.net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enigF9FBA5C678D2620D69EB9824 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable >> So i always was annoyed by the fact, that starting rxvt directly from >> windows opens a console windows. >=20 > Use 'run'. Or, modulo the bug Igor is reporting, the latest refresh of > rxvt. Now i know, what you mean with run! Now i'm satisfied, but ... >> Isn't it possible, to create such an EXE-file, that doesn't open a >> console? Would that cause any problems with cygwin? >> >> That would make any "hide the console"-code unnecessary. >=20 > This is not an option in the slightest. A -mwindows application cannot > interact with the console it was invoked from! That means that all such > compiled applications would have no I/O when invoked from the command > line unless redirected to a file. Try compiling "int main() { > puts("hello world"); }" with -mwindows and running it from a windows > console -- you get nothing. -mwindows applications are expected to > either have no console I/O or to explicitly create a new console > themselves. What isn't possible is to attach to the existing console > that it was run from. ... i have to prove you wrong! javaw.exe (from sun's java-jre) is a window-mode application, right? So how can you explain, that i see text within cygwin, when i run javaw.exe? $ javaw Usage: javaw [-options] class [args...] (to execute a class) or javaw [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the "client" VM -server to select the "server" VM -hotspot is a synonym for the "client" VM [deprecated] The default VM is client. See? It seems to be the standard-behaviour of the windows shell (cmd.exe) to detach the application from the console if it's starting a window-mode application. But cygwin doesn't detach the application. So of course, you're right if you say: if rxvt would be a window-mode application, then you wouldn't see anything if you execute "rxvt.exe --help" from the windows-shell - but i ask myself, if this is necessary. --------------enigF9FBA5C678D2620D69EB9824 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEaKQt7Ww7FjRBE4ARApbZAKDeHawirick2FL8WOIRa8ZZAgM/mwCeNCv8 ojv7B4UTk0T69rruYsIVIKE= =uzhP -----END PGP SIGNATURE----- --------------enigF9FBA5C678D2620D69EB9824--