BBS: TELESC.NET.BR Assunto: Re: Titles in lxterminal De: Richard Harnden Data: Thu, 19 Feb 2026 16:01:33 +0000 ----------------------------------------------------------- On 19/02/2026 03:47, bp@www.zefox.net wrote: > Theowrote: >> 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. >>> >>> One thing that would help is causing each lxterminl window or tab to display >>> the name of the command being run. In most cases that would be an ssh command >>> and hostname. >>> >>> Obviously, this can be done manually by using the Tabs > Name Tab menuu, >>> but it seems likely there'd be a setting in .config/lxterminal/lxterminal.conf >>> which I'm unable to intuit. >>> >>> Does anyone know if this is true, and if so what syntax is required? >> >> Does this set the window title: >> >> $ export TITLE="hello world" >> $ echo -en "\e]30;$TITLE\a" > > No. Neither does it trigger an error message.... > >> bash should set the window title to the current command, using the same >> escape sequence. If it doesn't: >> >> a) you aren't using bash. Maybe it needs to be enabled in your shell? >> > According to /etc/passwd, bash is my login shell, running > bob@raspberrypi:~$ echo $TERM > xterm-256color > > suggests that lxterm is a variant of xterm, which makes sense. > > > >> b) bash is not configured to set the title, I'm not sure where you'd find >> that >> >> c) your terminal is not advertising itself as a suitable type that uses the >> escape code. What's your TERM variable set to? >> > > As above, xterm-256color > >> d) your terminal is choosing not to display it, for some reason (perhaps >> the configuration you mention above) >> > The configuration file at ~/.config/lxterminal/lxterminal.conf contains > quite a few entries, but none appears to be related to titles. The man > page for lxterminal doesn't give any useful hints. The config file > appears to be name=value format, Shift-ctrl-I brings up the dialog > to manually enter a title which is interpreted as a simple string. > Does echo -en "\033]0;Hello World\007" work? --- PyGate Linux v1.5.11 * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10) ----------------------------------------------------------- [Voltar]