Titles in lxterminal

Feb 18, 2026 Last reply: 4 months ago 32 Replies

The problem is lxterminal is not as fully featured as the alternatives most people were probably using when they suggested the command sequences which work for them.

You might want to consider an alternative desktop with a different terminal program, MATE is almost as light weight as Pixel and runs very nicely on Pi4s and Pi5s.

---druck

Depends whether you want your desktop to be consistent, or have half a dozen different types of menus and window furniture on the apps that you use.

---druck

Especially if you do this on the day your interior decorator comes to visit ...

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

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.

I thought your window manager dealt with window furniture.

So which desktop environments are Firefox, GIMP, libreoffice etc etc meant to work with then? On my debian derived system, no matter what desktop system I'm running there's only one of each to install?

Sorry that argument does not run. But you can try and prove me wrong.

My interior decorator lives in the same house :-)

Me neither. I just tried it again, in case I had done something wrong.

Perhaps your urxvt was compiled with different options than mine, and one such option allows more

On my Slackware system: options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+NeXT

On one of my Pis: options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm

The mystery continues... Jim

I'm on Devuan, so urxvt is the Debian one. The options are the same as the Pi version.

On my Slackware system: options: perl,xft,styles,combining,blink,iso14755,unicode3, encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,pixbuf, XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize, cursorBlink,pointerBlank, scrollbars=plain+NeXT On one of my Pis: options: perl,xft,styles,combining,blink,iso14755,unicode3, encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,pixbuf

--> transparent,tint, XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize, cursorBlink,pointerBlank,

--> scrollbars=plain+rxvt+NeXT+xterm

What window manager do you use? I'm using openbox. Make sure your shell prompt isn't overwriting any change as explained earlier in this thread.

You can’t be sure of that. Who knows what the Devuan folks will rip out in their attempts to root out the dreaded systemd-contamination ...

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

Jim

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

formatting link
and search for "title".

cheers

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

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

--------------------------------------------------------------------

--------------------------------------------------------------------

See where I said

and later

Then you replied and said

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required