Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!jim From: jim@EXPO.LCS.MIT.EDU (Jim Fulton) Newsgroups: comp.windows.x Subject: re: twm program 'mytitle' Message-ID: <8903281906.AA23168@expo.lcs.mit.edu> Date: 28 Mar 89 19:06:46 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 22 If you are trying to set the title string from xterm, you can send the following escape sequences: To set the title string: ] 2 new-title-string To set the icon name: ] 1 new-icon-string The new strings may have any printable characters (including spaces). They are terminated by any non-printing character. The version of "cd" I use puts the current directory into the title as follows (I use echo -n and ^G so that I don't get any extra characters; if you don't mind a blank line, you can just use echo without the ^G). You'll have to replace the ^[ and ^G with octal 033 and 007, respectively. alias cd 'chdir \!*;echo -n "^[]2 ${cwd}^G"'