From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,7236aa4f9dd646e9 X-Google-Attributes: gidf678f,public From: tls@cbnews.cb.att.com (teresa.l.smith) Subject: Re: DECterm Date: 1995/10/21 Message-ID: #1/1 X-Deja-AN: 117884966 distribution: usa sender: news@nntpa.cb.att.com (Netnews Administration) references: <3086D8C4.41C6@arizona.edu> organization: AT&T newsgroups: comp.unix.osf.misc In article <3086D8C4.41C6@arizona.edu>, Titus Purdin 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 | --------------------------------------------------------------------