delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/13/12:13:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: applying command shell properties to cygwin.bat
Date: Tue, 13 Apr 2004 17:11:17 +0100
MIME-Version: 1.0
In-Reply-To: <20040413160448.95045.qmail@web10004.mail.yahoo.com>
Message-ID: <NUTMEGhFQJDfiSQ7p4400000441@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 13 Apr 2004 16:11:17.0906 (UTC) FILETIME=[F3D4FF20:01C42171]

> -----Original Message-----
> From: cygwin-owner On Behalf Of james pentland
> Sent: 13 April 2004 17:05

> when i run the cygwin bash shell on system startup
> from the startup entry in the registry the
> foreground/background color and other properties are
> not applied to the command shell in which bash runs.

> however, these properties are associated with the
> shortcut, not with the batch file which runs bash.

  Indeed; that's how windoze manages these settings, on a per-shortcut basis
rather than on a per-target basis.  I suspect there may be hidden .pif files
involved here.....

> as a consequence, when invoking bash by running the
> batch file, which is named cygwin.bat and is in a path
> something like n:\cygwin\cygwin.bat, the properties
> are not applied and one ends up with a generic command
> shell window - white text on black background, default
> layout, no icon.

  'fraid so.  That's a .bat file, not a shortcut, and so has no console
window properties associated with it.
 
> how can one associate the properties with the batch
> file cygwin.bat such that they stay with the command
> shell?

  You can't do, but instead of starting the batch file from your registry
startup entry, you could create a new shortcut to the batch file and put the
path of that shortcut in the registry instead.  Then you could set whatever
properties you wanted in the shortcut.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....
 



--
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/

- Raw text -


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