1

I've put a little bash script into my .bashrc based on this post:

How to change Terminal Title in ubuntu 16.04

It works great, at morning I start some terminals, one is called System other is for Development, etc.. I am using gnome-terminal. I am also using tint2, so all my terminals are on the bottom taskbar.

It is great to flag my terminals to distinguish them. But when I run midnight commander, it overwrites my given titles. Titles will be: mc[username@machine-name]

When I close mc, the titles are ok (what I've set before).

Is it possible to force mc somehow to not overwrite my original titles?

vaso123
  • 245
  • Is the original title re-written automatically after you exit from mc? Or do you want help to fix it? (I don't know how fix the title, while mc is running.) – sudodus Mar 08 '18 at 16:17
  • When I run terminal, title is: username@machine-name. I run set-title xxx so the title now is xxx. Run mc, and title is: mc[username@machine-name]. Exit mc, and title is xxx. What I want is to keep xxx while I do not close terminal. – vaso123 Mar 08 '18 at 16:21

1 Answers1

3

In Midnight Commander, go to F9 -> Options -> Layout -> disable XTerm window title.

(And then Options -> Save setup, unless you have Auto save setup enabled.)

egmont
  • 8,225