From: tls@cbnews.cb.att.com (teresa.l.smith)
Subject: Re: DECterm
Date: 1995/10/21 [thread overview]
Message-ID: <DGt5JA.AEK@nntpa.cb.att.com> (raw)
In-Reply-To: 3086D8C4.41C6@arizona.edu
In article <3086D8C4.41C6@arizona.edu>,
Titus Purdin <titus@arizona.edu> wrote:
>In hist "csh & tcsh" book (pub. O'Reilly), Paul Dubois devotes a
>whole section to "special displays," such as putting your pwd in
>the title bar of an xterm window. The ftp archive associated with
>the book also contains some information on this topic (mostly for
>HP-UX. Does anyone know (or know where to find) the control
>sequences to do similar tricks with dxterm?
>
>
> titus sends
When I invoke dxterm, the TERM variable is set to vt300. The following
escape codes work for this case:
# Make header of dec-window hostname:user current directory
echo "\033]21;$dir\033\ "
# Make icon hostname:user current directory
echo "\033]2L;$dir\033\ "
*** $dir variable is what you want to put in the window title,
e.g. (using ksh) dir="[`hostname | cut -f 1 -d '.'`:`whoami`] $PWD"
puts hostname, user and current working directory as title.
For xterm windows, the TERM variable is set to xterm. The following
escape codes work for this case:
# Make header of xterm hostname:user current directory
echo "\033]2;$dir\\07"
# Make icon hostname:user current directory
echo "\033]1;$dir\\07"
--
--------------------------------------------------------------------
| Teresa L. Smith | tls@ormaudib.cnet.att.com |
| "Any opinions are mine" | AT&T Microelectronics |
--------------------------------------------------------------------
next prev parent reply other threads:[~1995-10-21 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-10-19 4:00 DECterm Titus Purdin
1995-10-21 4:00 ` teresa.l.smith [this message]
1995-10-24 4:00 ` DECterm Paul DuBois
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