delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/25/14:18:53

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
Date: Wed, 25 Sep 2002 14:17:20 -0400
From: "Zieg, Mark" <mark DOT zieg AT lmco DOT com>
Subject: RE: bash window title - can I add hostname to it?
To: "'Francois de Campagnolle'" <frc AT myrealbox DOT com>,
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Message-id: <7424935D9B6CD311B72800508B108FD20D1767C5@emss03m08.orl.lmco.com>
MIME-version: 1.0

> > > to include hostname as well as the current directory it displays now.
> >
> > export PS1="\[\e]2;\h:\w\007\e[1;36m\]\h [\[\e[1;35m\]\w\[\e[1;36m\]] \u
$
> > \[\e[1;33m\]"
> >
> > (Note that you need to have such a prompt on every computer you telnet
to,
> > as well -- they're the ones that send the ANSI sequences to your
terminal
> > client to set the title.)
> 
> I suppose you can alias telnet, rsh and the likes to change title before
> connecting to the remote box.

If you did that, then the first time the remote box attempted to update the
directory in the title (part of the user's existing functionality), then the
hostname would be presumably overwritten.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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