delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/16/05:09:18

X-Spam-Check-By: sourceware.org
Message-ID: <1d3a88250605160209n17c1e648uae1accb003f39efb@mail.gmail.com>
Date: Tue, 16 May 2006 11:09:01 +0200
From: Lloeki <lloeki AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: rvxt-20050409-1 console problem
In-Reply-To: <e4ab7q$1jl$1@sea.gmane.org>
MIME-Version: 1.0
References: <C874DBE9D30B584587F8CD0EC34DA8BE0186830F AT EX00 DOT idirect DOT net> <e4ab7q$1jl$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id k4G99BDC014257

> Shouldn't the console-hiding code be unnecessary?>> Here is a simple approach that I have been using (and have written> to this list previously) which makes it possible to start rxvt> without resorting to starting a console first:
Using a "direct" shortcut instead of shortcutting/running the batchfile has another advantage, when you're not using rxvt but windowsconsole.
Case 1:1) Run the batch file (through the default cygwin shortcut, viaexplorer or whatever) which launches bash in a windows console2) 'exit' the login shellWindow closes. All is fine.
Case 2:1) Run the batch file (through a shortuct, via explorer or whatever)which launches bash in a windows console2) press CTRL-C anytime (shell or not)3) 'exit' the login shellA message pops up: "Terminer le programme de commandes (O/N)?" infrench (translated: "End batch file (Y/N)?"). Signal was not onlyhandled by cygwin, but is also handled by the .bat interpreter, whichinterrupts its execution upon bash return, and ask for interactiveconfirmation. Stupid, as the .bat is at the end anyway (although itmight change its return code). Anyway, that's annoying.
Case 3:1) Run a 'direct' shortcut which launches bash directly(c:\cygwin\bin\bash --login -i), built as it has been suggested and asI did prior to using rxvt or puttycyg.2) press CTRL-C anytime (shell or not)3) 'exit' the login shellWindow closes. All is fine.
Then I switched to rxvt based on this shortcut, and discovered onlyrecently that rxvt pops up a console window and that my shortcutthingie was a heck of a workaround.So I concluded that running .bat files/console was definitely to bepromoted on my list of Most Annoying Things Ever.
Lloeki

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019