The officially official Devuan Forum!

You are not logged in.

#1 2022-04-06 09:39:41

amaro
Member
Registered: 2022-02-08
Posts: 88  

terminal display in title bar

Hello everybody!

When I use 'vim' with 'xfce4-terminal' the name of the opened file doesn't appear in the title bar. Instead it shows either 'Untitled' or ' user@domain'.

When I use vim with 'terminator' it shows '/usr/bin/vim' but not the file's name.

Is it possible to show opened file name in both?
I already have 'replace initial title' activated in both.

p.s. Even when I open either 'terminator' or 'xfce4-terminal' as 'root' it doesn't show 'root@domain' but still 'user@domain'.
What is missing here?

Offline

#2 2022-04-06 10:01:59

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: terminal display in title bar


Brianna Ghey — Rest In Power

Offline

#3 2022-04-10 17:04:57

amaro
Member
Registered: 2022-02-08
Posts: 88  

Re: terminal display in title bar

tried both suggestions on that page and with both get same output

$ vim newfile
vim newfile $

it also started adding the current folder after the 'user@domain' so all that was seen was actually the 'user@domain' which was not very helpful.

that's with 'xfce4-terminal'.
with 'terminator' it did not work at all.

so I copied the '.bashrc' from Arch and added

trap 'echo -ne "\033]2;$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g")\007"' DEBUG

it's not as good as I was expecting it to be but it's better.

Last edited by amaro (2022-04-10 17:06:36)

Offline

Board footer