BBS:      TELESC.NET.BR
Assunto:  Re: Titles in lxterminal
De:       Jim Diamond
Data:     Tue, 3 Mar 2026 16:30:01 +1100
-----------------------------------------------------------
On 2026-03-01 at 07:39 AST, Jim Jackson  wrote:
> On 2026-03-01, Jim Diamond  wrote:

>> After I sent my last email, I started to wonder whether it could be a
>> window manager thing.

>> I am using fvwm3.

>> By the way, I looked only (only for a few minutes), and didn't find any web
>> page or "cheat sheet" or ... which mentioned using '30' to set the window
>> title.  Did you get that off some web site somewhere, deep inside some
>> documentation, or ... ?

> Sorry don't understand the "30" reference.

You haven't been following along closely.  Here is the entire message which
you first (at least first in this sub-thread) replied to:

--------------------------------------------------------------------
> Date: Wed, 25 Feb 2026 21:33:02 -0400
> 
> 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
--------------------------------------------------------------------

See where I said

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

and later

> 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.

Then you replied and said

> just installed rxvt-unicode, fired it up and ran my usual terminal name
> script which uses these codes and it works! Dunno what makes you setup
> not work.

So now I wonder whether you actually used the "3" when you tried setting the
title in urxvt.   When you said "these codes" I assumed you were talking
about the codes with "30" in them, since that was the escape sequence that
had been mentioned earlier.

I also wonder whether the OP got straightened out, but I'm not sure he
ever replied in the end.

                                Jim

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

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