This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
RE: Title bar of X apps, no host name?
- From: Jay Goldman <JayGoldman at crd dot com>
- To: "cygwin-xfree at cygwin dot com" <cygwin-xfree at cygwin dot com>
- Date: Fri, 4 Nov 2011 08:29:50 -0400
- Subject: RE: Title bar of X apps, no host name?
- References: <5F294971C00A184CB8687A4A191A9CD00133043B@JTCLOE3> <j8upui$9lu$1@dough.gmane.org>
- Reply-to: cygwin-xfree at cygwin dot com
You can put what you want in the title by setting PROMPT_COMMAND - e.g., set PROMPT_COMMAND="setWindowTitle $(uname -n)"
where setWindowTitle is a shell script like:
echo -ne "\e]2;$*\a"
by putting it in the PROMPT_COMMAND you handle the case where some command sets the window title while it is processing (I do this to provide feedback for long running scripts without filling up the screen). Once the command finishes the window title gets set back to your desired value.
Btw, I use different foreground/background color combinations to distinguish between xterms on different machines -
some of the color combinations are ugly but they are different :-)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/