Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!apple!voder!pyramid!ctnews!88opensi!ferg From: ferg@88opensi.UUCP (John Ferguson) Newsgroups: comp.windows.x Subject: Re: Title bar flicker fix for XTerm [setting title only on "cd"] Message-ID: <514@88opensi.UUCP> Date: 4 Oct 90 19:07:58 GMT References: <6459@vanuata.cs.glasgow.ac.uk> <28434@pasteur.Berkeley.EDU> < <1990Oct3.011511.2263@mlb.semi.harris.com>> < <1990Oct2.232740@Pkg.Mcc.COM>> Reply-To: ferg@88open.ORG (John Ferguson) Organization: 88open Consortium Ltd., San Jose Lines: 31 In article rhoward@msd.gatech.edu (Robert L. Howard) writes: >.... >BTW, Where in the xterm docs can I found out what the string to set the > title should be? > In the back of the O'Reilly 'X Window System User's Guide'. The sequence is like this: \E]2;title-string^G where '\E' is escape and '^G' is -G, 'title-string' is the string to be printed, and the rest are literal ASCII characters. With ksh I use it like this: _cd() { 'cd' $* if [ "$TERM" = "xterms" ] then echoesc "\E]2;`hostname`: ${PWD}^G" fi } alias -x cd=_cd ferg =============================================================================== John C. Ferguson (408) 436-6600 Sr. Systems Administrator FAX (408) 436-0725 88open Consortium, Ltd. ...!uunet!88opensi!ferg 100 Homeland Court suite 800 ferg@88open.ORG San Jose, CA 95112