BBS:      TELESC.NET.BR
Assunto:  Re: Titles in lxterminal
De:       Jim Jackson
Data:     Fri, 20 Feb 2026 11:00:01 +1100
-----------------------------------------------------------
On 2026-02-19, bp@www.zefox.net  wrote:
> Jim Jackson  wrote:
>> On 2026-02-18, 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?
>>>
>>> Thanks for reading,
>>>
>>> bob prohaska
>>>
>> 
>> You need to write the string ESC]0;Title^G  to the terminal.
>> 
>> I have this in a little script called xtn which does this.
>> 
>> To generate ESC in bash use ^V^[   where '^' is holding down the control key.
>> ^G is done like wise. You will have to wrap the strings in quotes
>> 
>> e.g.  echo -n "^[]0;"$1"^G"
>> 
>> good luck. I've just done this in LXTerminal with bash as my shell.
>
> It doesn't seem to do much of anything in my case. Here's a transcript:
> bob@raspberrypi:~$ echo $TERM
> xterm-256color
> bob@raspberrypi:~$ echo -n "^[]0;"$1"^G"
> ^[]0;^Gbob@raspberrypi:~$ 
> bob@raspberrypi:~$

Did you type '^' then '['? Instead you should type ctl-V Ctl-[
and the same for for the other control character.

It worked for me in lxterminal and the $TERM was identical to yours.

>
> I was hoping to see the title change, but no luck. As you might
> guess, my fluency with shells is abysmal. I use them only in a
> very simple-minded way, usually to type single commands.
>
> Thanks for writing!
>
> bob prohaska
>
>

--- PyGate Linux v1.5.11
 * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)

-----------------------------------------------------------
[Voltar]