Sujet : Re: Titles in lxterminal
De : gordon+usenet (at) *nospam* drogon.net (Gordon Henderson)
Groupes : comp.sys.raspberry-piDate : 19. Feb 2026, 17:24:44
Autres entêtes
Organisation : Drogon Towers
Message-ID : <10n7dgc$3l8u3$1@dont-email.me>
References : 1
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
10n560g$2u42e$1@dont-email.me>, <bp@
www.zefox.net> 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
Haut de la page
Les messages affichés proviennent d'usenet.
NewsPortal