Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!pp!kauai!duanev From: duanev@kauai.ACA.MCC.COM (Duane Voth) Newsgroups: comp.windows.x Subject: Re: changing title Summary: add a trailing ESC Message-ID: <608@kauai.ACA.MCC.COM> Date: 28 Feb 90 16:12:18 GMT References: <347@seti.inria.fr> <112@minya.UUCP> Organization: MCC, Austin, TX Lines: 27 In article <112@minya.UUCP>, jc@minya.UUCP (John Chambers) writes: > In article <347@seti.inria.fr> soulard@iznogoud.inria.fr (Herve Soulard) writes: > > Title name and icon name of a window can be change > > using these control sequences : > > ] 0 ; string and string will become > > the title and icon name > > .. This works just fine, and I go on to alias cd to call setttl > to get the hostname and cwd into the title bar. It also produces a > newline, which goes to the window as ordinary output, causing a blank > line on the screen. I've found that a second ESC at the end of the title string "suppreses" the newline with no apparent side affects. My csh aliases look like: xlabel echo -n "${ESC}]0;!*${ESC}" xititle echo -n "${ESC}]1;!*${ESC}" xtitle echo -n "${ESC}]2;!*${ESC}" where ESC was "set"ed to ^[ previously. -- --- duane voth duanev@mcc.com ---- {uunet,harvard,gatech,pyramid}!cs.utexas.edu!milano!pp!duanev --- ALL systems are arbitrary! Effectiveness is the measure of Truth --