re title for xterm in apr samba oit unc edu naoumov physics unc edu sergei naoumov writes hey guys i work on many stations and would like this name and current logname to be in a title of xterm when it s open and a machine name only when it s closed in other words i want host and logname to appear as a title of opened xterm and host when xterm is closed how can i do it thnsks in advance serge serge gluttony astro unc edu almost all window managers twm mwm olwm and their derivates support escape sequences for it for your purpose put following into your login if you re using csh or tcsh for sh you have to modify it if term xterm then echo logname host g host g endif note stands for esc in vi you can enter it by pressing ctrl v and the esc same for g it means ctrl g in vi press ctrl v and then ctrl g the first sequence puts the string into the title bar the second in the icon btw you can also put the current working directory in the title bar if you make an alias for cd alias cd cd echo logname host cwd g greetings thomas thomas wolfram thomas aeon in berlin de eantc tu berlin wolf prz tu berlin de
