Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Server-Uuid: 0A4F2A26-D23B-4C5A-98BA-1B421465C24E content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: applying command shell properties to cygwin.bat Date: Tue, 13 Apr 2004 11:41:27 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "DePriest, Jason R." To: cygwin AT cygwin DOT com X-OriginalArrivalTime: 13 Apr 2004 16:41:27.0999 (UTC) FILETIME=[2ABB44F0:01C42176] X-WSS-ID: 6C62C7B21P44766491-01-01 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i3DGgFFJ000817 >-----Original Message----- >From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Dave Korn >Sent: Tuesday, April 13, 2004 11:11 AM >To: cygwin AT cygwin DOT com >Subject: RE: applying command shell properties to cygwin.bat > > >> -----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.... You could also consider using rxvt as the shell. I have a .bat file for starting a window that looks like this: [batch] @echo off C: cd \cygwin\bin rxvt.exe -bg white -fg black -fn "Lucida ConsoleP-12" -ls -sl 9000 -rv -geometry 110x50 -sb -si -sk -sr -sw -e bash --login -i [/batch] The rxvt start options are specified on the command-line instead of the hand-waving way that the start options for cmd are specified. ------------------------------------------------------------------------------ Confidentiality notice: This e-mail message, including any attachments, may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer. ============================================================================== -- 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/