BBS:      TELESC.NET.BR
Assunto:  Re: Titles in lxterminal
De:       Jim Jackson
Data:     Mon, 2 Mar 2026 11:30:01 +1100
-----------------------------------------------------------
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.

Sending control sequences to the terminalemulator can be difficult to 
understand, as you have to get the control characters "past" the shell 
interface you are using to type the command. Someone above (sorry I 
forget the attribution) made the best suggestion of

 echo -en "\033]0;Hello World\007"

where every character is from the ascii display character set and there 
is no confusion as to control keys etc.

\033 tells echo to send the character whose octal value is 033 (or 
decimal 27) which is the control code, ESC, that starts a command sequence 
to the terminalemulator software. \007 codes for the control code, BEL 
(confusingly!) which terminates this command sequence. The command "0;" 
is used to set the title to the characters that follow upto the BEL.

For the full list of xterm command sequences see 

   https://www.xfree86.org/current/ctlseqs.html

and search for "title".

cheers

p.s. apologies if I was teaching you to suck eggs!

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

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