www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <41470467.2040507@x-ray.at> |
Date: | Tue, 14 Sep 2004 16:47:03 +0200 |
From: | Reini Urban <rurban AT x-ray DOT at> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a3) Gecko/20040817 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: HELP: How to disable killing of Bash Shell window with mouse? |
References: | <ci4hb6$hh7$1 AT sea DOT gmane DOT org> <1qoebilxzdy1c$.dlg AT thorstenkampe DOT de> <4146B06A DOT 4080706 AT x-ray DOT at> |
In-Reply-To: | <4146B06A.4080706@x-ray.at> |
X-IsSubscribed: | yes |
Reini Urban schrieb: > Thorsten Kampe schrieb: >> * Pekka Niiranen (2004-09-13 18:19 +0200) >> >>> Killing Cygwin Shell Window with mouse leaves bash.exe running. >>> which can be seen from W2K task manager. How can I disable >>> X -button from the Shell Windows so that the user is forced >>> to TYPE "exit" on command prompt? Recompiling? >> >> >> Recompile what? Cmd exe? Bash is a shell and knows nothing about the >> Windows Console "X" button. >> >> Show them [Ctrl-d] which is anyway faster than grabbing the mouse. If >> they still do it - hit 'em on the head with a stick and let them write >> a thousand time "I won't ever try to close a shell with my mouse". > I don't think that the question is really that stupid. People are used > to the mouse. > > So, shouldn't the KILL message be propagated to its child process? > bash could react then. Or is it only propagated if bash would register > itself as an (invisible) window, just to receive those parent messages? > Just on --login of course. > > If so, it should be added IMHO. I know it's stupid, but bash is the most > used login shell, which should react somehow. Sorry, haven't actually tried out the reported problem. Of course the Pekka Niiranen report is bogus. The default cygwin.bat shell, starting bash --login -i via cmd.exe, will kill successfully cmd.exe and its child bash.exe when killing the window via the mouse [x] or via the pulldown. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |