re title for xterm in article apr gecko uucp lanzo tekelec com mark lanzo writes hint for sun os users use usr bin echo instead of bin echo or csh s built in echo otherwise you ll have to embed literal esc and bel characters in the string instead of using convenient octal sequences bad idea using usr bin echo is slower than the built in echo this is what i do it does execute hostname once per shell window and does read in one extra file but manipluating the titles does not require executing extra programs oh yes it does execute some programs once per each system but it stores them in a file for the next time if hostname then setenv hostname hostname endif figure how how to generate escape bell and echo commands without a a line terminator i may have done this before if so the variable e is set have i executed this script before on this system if e then echo already set the echo variables dev tty else if f echo hostname then source echo hostname else if echo n wc l then echo built in echo is bsd dev tty then berkeley style echo echo set ech echo n echo hostname echo set e echo a tr a echo hostname echo set b echo a tr a echo hostname echo set n echo hostname source echo hostname else echo built in echo is sysv dev tty echo set ech echo echo hostname echo set e echo hostname echo set b echo hostname echo set n c echo hostname source echo hostname endif are we using shelltool cmdtool or xterm duplicate these aliases here to avoid problems if term sun then sun aliases alias header ech e l e n alias iheader ech e l e n else if term xterm then alias header ech e b n alias iheader ech e b n endif bruce barnett barnett crd ge com uunet crdgw barnett
