delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <470BCCA5.6090507@columbus.rr.com> |
Date: | Tue, 09 Oct 2007 14:47:01 -0400 |
From: | Paul McFerrin <pmcferrin AT columbus DOT rr DOT com> |
Reply-To: | pmcferrin AT columbus DOT rr DOT com |
User-Agent: | Thunderbird 2.0.0.6 (Windows/20070728) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Naming Cygwin Shells |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
In some initial cygwin window, execute the following command line: setpgrp rxvt --backspacekey ^H -sbt 15 -fg white -bg black -geometry +75+80 -sr -title "SYSTEMxx" -tn ansi -sl 1500 -fn 'Lucida Console-12' -e ksh & and replace "SYSTEMxx" with what ever label you like. This will create another window with a shell and place the label at the top of the new window. You can then type in that window. If you don't have a copy of "setprgp.exe", you can remove it. However, an interrupt in ANY window will them them all off. Or you can get a copy at: http://pmcferrin.homedns.org/setpgrp.exe It is a simple program that executees the setpgrp(2) system call before executing the arguments. With the above, there is no need to worry about the fuss of using escape sequences to set your window's title. Each window will have it's own complete and independant environment to do anything. The source to setpgrp.c is at: http://pmcferrin.homedns.org/setpgrp.c - paul Also available from: http://pmcferrin.homedns.org/ are: cygwin.bat .bash_login which is what I use to start up cygwin, desktop icon: C:\cygwin\cygwin.bat bluewolf wrote: > Simple question here. I am trying to figure out a way to name a cygwin > shell > so that I can have multiple windows up doing tails and other such > functions > and easily see what system i am looking at. > I know that in CMD if i want to change the name of a CMD window to > shellname > the command the command is simply> title shellname > > It was suggested that for cygwin i would use> cmd /c title=shellname > > but that die not work. does any one know how I could accomplish this? > -- 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 |