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
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?
On 2026-02-18, bp@www.zefox.net <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.
On 19/02/2026 03:47, bp@www.zefox.net wrote:
Theo <theom+news@chiark.greenend.org.uk> 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"
No. Neither does it trigger an error message....
bash should set the window title to the current command, using the sameAccording to /etc/passwd, bash is my login shell, running
escape sequence. If it doesn't:
a) you aren't using bash. Maybe it needs to be enabled in your shell?
bob@raspberrypi:~$ echo $TERM
xterm-256color
suggests that lxterm is a variant of xterm, which makes sense.
b) bash is not configured to set the title, I'm not sure where you'd find >>> that
c) your terminal is not advertising itself as a suitable type that uses the >>> escape code. What's your TERM variable set to?
As above, xterm-256color
d) your terminal is choosing not to display it, for some reason (perhaps >>> the configuration you mention above)The configuration file at ~/.config/lxterminal/lxterminal.conf contains
quite a few entries, but none appears to be related to titles. The man
page for lxterminal doesn't give any useful hints. The config file
appears to be name=value format, Shift-ctrl-I brings up the dialog
to manually enter a title which is interpreted as a simple string.
Does
echo -en "\033]0;Hello World\007"
work?
Gordon Henderson <gordon+usenet@drogon.net> wrote:
In article <10n560g$2u42e$1@dont-email.me>, <bp@www.zefox.net> wrote: >>>From time to time I get badly confused about which terminal window does what.This suggestion might touch on a fundamental issue: Which host,
This is on a Pi5 running bookworm, if it matters.
This is on "generic Linux" if it matters:
In ~/bin I have an executable script:
#!/bin/sh
if [ "x$*" = x ]; then
echo -n "\033];`hostname`\007"
else
echo -n "\033];$*\007"
fi
I call it 'xtt' (xterm title - works in xterm and other terminals I use)
You make it yours and call it what you like.
So xtt on it's own resets the title to your hostname (handy if you login
to many systems) othrwise it sets the title to whatever you put on the
command line
xtt silly editing session
for example
Your challenge is to make it work automatically for every command
you type.. (I don't need that functionality, I use it inside other
scripts that start stuff)
the ssh client or the ssh server, gets to set the window or tab
title on the client machine running RasPiOS? I've been thinking
it's the RasPiOS machine displaying the window or tab. If I'm
understanding you correctly it's the server end of the connection.
Is that correct?
I'm working with only one RasPiOS workstation client and several
FreeBSD servers. I'd rather customize the workstation than the
servers, if that's possible.
In article <10n7fpe$3lun8$2@dont-email.me>, <bp@www.zefox.net> wrote:
This suggestion might touch on a fundamental issue: Which host,
the ssh client or the ssh server, gets to set the window or tab
title on the client machine running RasPiOS? I've been thinking
it's the RasPiOS machine displaying the window or tab. If I'm
understanding you correctly it's the server end of the connection.
Is that correct?
It's whatever you want it to be. In my case it's the client - which to
avoid ambiguity is the system I type the ssh command on...
Jim Jackson <jj@franjam.org.uk> wrote:
On 2026-02-18, bp@www.zefox.net <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:~$
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
Theo <theom+news@chiark.greenend.org.uk> 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"
No. Neither does it trigger an error message....
bash should set the window title to the current command, using the sameAccording to /etc/passwd, bash is my login shell, running
escape sequence. If it doesn't:
a) you aren't using bash. Maybe it needs to be enabled in your shell?
bob@raspberrypi:~$ echo $TERM
xterm-256color
suggests that lxterm is a variant of xterm, which makes sense.
b) bash is not configured to set the title, I'm not sure where you'd find
that
c) your terminal is not advertising itself as a suitable type that uses the >> escape code. What's your TERM variable set to?
As above, xterm-256color
d) your terminal is choosing not to display it, for some reason (perhapsThe configuration file at ~/.config/lxterminal/lxterminal.conf contains
the configuration you mention above)
quite a few entries, but none appears to be related to titles. The man
page for lxterminal doesn't give any useful hints. The config file
appears to be name=value format, Shift-ctrl-I brings up the dialog
to manually enter a title which is interpreted as a simple string.
Richard Harnden <richard.nospam@gmail.invalid> wrote:
Does
echo -en "\033]0;Hello World\007"
work?
No, it doesn't do anything visible:
bob@raspberrypi:~$ echo -en "\033]0;Hello World\007"
bob@raspberrypi:~$
so no output beyond the echoed input and no change in
the tab title. I rather wonder where the command output
went, since no error was reported.
If I'm missing something idiotic please point it out!
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"
On 2026-02-18 at 20:43 AST, Theo <theom+news@chiark.greenend.org.uk> 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"
| Sysop: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 126 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 05:59:37 |
| Calls: | 7,774 |
| Files: | 9,382 |
| D/L today: |
183 files (40,423K bytes) |
| Messages: | 395,776 |