BBS:      TELESC.NET.BR
Assunto:  Re: Titles in lxterminal
De:       Jim Diamond
Data:     Thu, 26 Feb 2026 13:30:01 +1100
-----------------------------------------------------------
On 2026-02-20 at 16:49 AST, Theo  wrote:
> Jim Diamond  wrote:
>> On 2026-02-18 at 20:43 AST, Theo  wrote:
>>> 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"

>> I realize that the conversation has moved on, but for anyone coming in late...

>> There is a '3' in the above line which should not be there.

>> Try
>> $ echo -en "\e]0;$TITLE\a"

> They both work for me (in Konsole). According to:
> $ zless /usr/share/doc/xterm/ctlseqs.txt.gz

> Code       | Sun | CDE | XTerm | Description
> OSC 0 ST   |  -  | yes |  yes  | set window and icon title
> OSC 1 ST   |  -  | yes |  yes  | set icon label
> OSC 2 ST   |  -  | yes |  yes  | set window title
> OSC 3 ST   |  -  | n/a |  yes  | set X server property


> where OSC ('operating system command') is 'ESC ]' in 7-bit mode (0x9b in
> 8-bit mode) and ST ('sequence terminator') is 'ESC \' or 0x9c.  So it looks
> like the first 3 is overridden by the second 0 as there's no OSC 3 0 ST
> command listed.

Theo,

Huh.  They don't work for me in urxvt.

Of course, the question was about lxterminal.  So maybe it didn't work for
the OP because of the '3', and maybe for some other reason.

                                Jim

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

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