BBS: TELESC.NET.BR Assunto: Re: Titles in lxterminal De: Gordon Henderson Data: Fri, 20 Feb 2026 11:00:01 +1100 ----------------------------------------------------------- In article <10n560g$2u42e$1@dont-email.me>,wrote: >From time to time I get badly confused about which terminal window does what. >This is on a Pi5 running bookworm, if it matters. This is on "generic Linux" if it matters: In ~/bin I have an executable script: #!/bin/sh if [ "x$*" = x ]; then echo -n "\033];`hostname`\007" else echo -n "\033];$*\007" fi I call it 'xtt' (xterm title - works in xterm and other terminals I use) You make it yours and call it what you like. So xtt on it's own resets the title to your hostname (handy if you login to many systems) othrwise it sets the title to whatever you put on the command line xtt silly editing session for example Your challenge is to make it work automatically for every command you type.. (I don't need that functionality, I use it inside other scripts that start stuff) Gordon --- PyGate Linux v1.5.11 * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10) ----------------------------------------------------------- [Voltar]