Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: cs230457@vtaix.cc.vt.edu (Scott Gasch)
Subject: Re: DXterm title ?
Date: 9 Mar 1995 19:05:56 GMT	[thread overview]
Message-ID: <3jnjil$j9t@solaris.cc.vt.edu> (raw)
In-Reply-To: D56BpJ.Dt0@ebi.ac.uk

Alain Gateau (agateau@ebi.ac.uk) wrote:

: Hi all...

: Is it possible to make my DXterm window title change when I change directory ?

: thanx,
: Alain

Undex mwm and twm it is possible to change the title bar from the shell. 
How you get it to change whenever you change directories is all a matter
of what shell you use; The way you change the window title bar is:

echo "^[]2;(title text)^G^[]1;(icon text)^G"

where (title) is what you want it to say on the xterm title and (icon text)
is what the xterm should be called on the icon manager.

As far as how you go about doing this whenever you change directories, under
tcsh (which I really like) it is simple, just set cwdcmd to echo this info.
If you use csh, maybe you could try aliasing cd to echo this and change the
directory also, check out the \!* parameter, it means "the rest of the line"
so you could say "alias cd "chdir \!*; (echo statement)"

I am really not sure about how to do this with other shells, amybe someone
else here or in the shells group could help you with them.

Hope this helps,
Scott


      reply	other threads:[~1995-03-09 19:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-09 12:51 DXterm title ? Alain Gateau
1995-03-09 19:05 ` Scott Gasch [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox