www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/17/04:28:30

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
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: applying command shell properties to cygwin.bat
Date: Sat, 17 Apr 2004 10:28:09 +0200
Lines: 45
Message-ID: <6b2hj4691pnp$.dlg@thorstenkampe.de>
References: <20040413160448 DOT 95045 DOT qmail AT web10004 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: isi-dialin-129-252.isionline-dialin.de
User-Agent: 40tude_Dialog/2.0.10.1de

* james pentland (2004-04-13 18:04 +0100)
> 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.
> 
> in the properties dialogue for the cygwin shell
> shortcut, one can adjust the foreground/background
> color, font characteristics, layout and icon of the
> command shell window in which bash runs.
> the properties dialogue can be entered from the
> command shell window or by right clicking on the
> shortcut.
> 
> however, these properties are associated with the
> shortcut, not with the batch file which runs bash.
> 
> 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.
> 
> how can one associate the properties with the batch
> file cygwin.bat such that they stay with the command
> shell?

This is not Cygwin related but anyway: Why don't you then edit the
properties of the batch file? Or put a "color" ("color 07" for
instance) statement in the batch file?

If you want to change it for all windows then export your settings and
apply them manually for [HKCU\Console\%%SystemRoot%%_System32_cmd.exe]
or even [HKCU\Console].

I do that with for instance:
"reg add HKCU\Console /v WindowSize /t REG_DWORD /d 5177431 /f"

A better aproach is not to set to use the Windows Console but rxvt. Or
even better in the Unix environment you use (using the colour escape
sequences or your shell or some of terminal manipulation programs
tput, tset or whatever)

Thorsten


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