Changing tab colors?

182 views
Skip to first unread message

Grzegorz Staniak

unread,
Aug 8, 2018, 7:37:33 AM8/8/18
to iterm2-discuss
Hi all,

Sorry if it's a FAQ, but I couldn't find an answer in Google -- I have just upgraded iTerm2 (to 3.2.0), and I can see that tab color scheme became much less readable: I get white titles on light gray, or light grey on greyish-blue (for blue-colored tabs) etc, see attached screenshots. Can I change the colors manually somewhere? Have I missed an option in profile settings?

Thanks for your time, 
Greg
iTerm2.png

Richard Mitchell

unread,
Aug 8, 2018, 7:54:11 PM8/8/18
to iterm2-discuss
I also have a question about tabs and your screenshot points out my problem must be something I've done.  I'm running Build 3.2.20180726-nightly.  I no longer get text in the tab, just a little icon of a terminal.  The window bar shows tab, but not the tab bar.

hvjunk

unread,
Aug 9, 2018, 9:04:35 AM8/9/18
to iterm2-...@googlegroups.com
The problem appears to the Tab text’s colors that isn’t as … contracting, compared to the previous settings.

See where to turn off the tab color setting (3.2.0 at least) and the impact of the not enough-contrast on tab *text*:



--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<iTerm2.png>

signature.asc

George Nachman

unread,
Aug 10, 2018, 5:12:06 PM8/10/18
to iterm2-...@googlegroups.com
That's a bug. It'll be fixed in the next release.

--

George Nachman

unread,
Aug 10, 2018, 5:12:50 PM8/10/18
to iterm2-...@googlegroups.com
The nightly build shows an icon when the title would otherwise be empty. Check Prefs>Profiles>General and configure the session title there. If it seems like it ought to have a title but does not please file an issue at https://iterm2.com/bugs and include a debug log. Thanks!

--

Richard Mitchell

unread,
Aug 10, 2018, 5:24:54 PM8/10/18
to iterm2-discuss
I discovered when I changed Preferences->Profiles->General->Title to Name (Session Name, it had been on Profile Name), the escape codes to set the tab text started working again.

The problem is relatively (maybe a couple months but I think closer to a a few weeks) recent.

I use Dynamic profiles.  I search through all of them and did not find where I was setting Title.

I changed each profile through the GUI to fix it, it is now working again as it used to work.   There is probably a setting somewhere I toggled that started it, but I can't find it now.

George Nachman

unread,
Aug 10, 2018, 5:35:57 PM8/10/18
to iterm2-...@googlegroups.com
I assume you're talking about the not-selected tabs? That change was made so the selected tab would stand out a little more. I've added a new advanced pref for the next 3.2 release called "How prominent should the text in a non-selected tab be when there are colored tabs in a window?".
Screenshot 2018-08-09 15.02.46.png
Screenshot 2018-08-09 15.02.33.png

George Nachman

unread,
Aug 10, 2018, 5:47:38 PM8/10/18
to iterm2-...@googlegroups.com
Could your dynamic profiles have been missing titles? That's the only explanation I can think of.

Richard Mitchell

unread,
Aug 10, 2018, 6:38:30 PM8/10/18
to iterm2-discuss
I'm not setting it, so yes.  What json entry do I need to create/add to set it?

hvjunk

unread,
Aug 11, 2018, 2:37:00 AM8/11/18
to iterm2-...@googlegroups.com

On 10 Aug 2018, at 23:35 , George Nachman <gnac...@llamas.org> wrote:

I assume you're talking about the not-selected tabs?

Exactly!!

That change was made so the selected tab would stand out a little more.

Although that’s great to see which tab I’m on now, the problem is that (especially as displays gets higher DPI, and the tab font sizes aren’t changeable) it’s nearly impossible for me to find the tab I’m actually needing to switch *to* given the current contrasting. ;(

<Screenshot 2018-08-09 15.02.33.png><Screenshot 2018-08-09 15.02.46.png><Screenshot 2018-08-09 15.02.33.png><Screenshot 2018-08-09 15.02.33.png>

signature.asc

George Nachman

unread,
Aug 11, 2018, 3:05:19 AM8/11/18
to iterm2-...@googlegroups.com
The key is "Name".

Richard Mitchell

unread,
Aug 11, 2018, 10:03:14 AM8/11/18
to iterm2-discuss

I need more help than that.  I'm changing  "Title:" from the "Profile Name" to "Session Name" - that appeared to allow the escape codes to set the tab title, previously the escape codes were having no effect.  The "Name" key in my json files have the name of the profile, which I use to select (from a shell script) the profile I want to use.


Screen Shot 2018-08-11 at 09.46.48.png


The profile name doesn't appear any where else in the profile.  One of my profiles is named "Ubuntu", this is the only place that string occurs:

Dyn-Ubuntu.json:         "Name" : "Ubuntu",

Dyn-Ubuntu.json:         "Non Ascii Font" : "UbuntuMonoDerivativePowerline-Regular 10",

Dyn-Ubuntu.json:         "Normal Font" : "UbuntuMonoDerivativePowerline-Regular 12"



Certainly setting "Name" to "Name" would wreak havoc, which is the value Title needs to work properly.  "Title" only occurs in some of my profiles as this:

Dyn-NovaMonoForPowerline.json:         "Allow Title Reporting" : "true",


I added that a year ago, but didn't comment why.

George Nachman

unread,
Aug 12, 2018, 10:01:47 PM8/12/18
to iterm2-...@googlegroups.com
The different configurations for the title are a little tricky to sort out because they're a bit mask. I really need to write better docs for this stuff! The key that controls the session title is "Title Components" and it takes a numeric value that is the sum of one or more of the following:

Session Name: 1
Job: 2
PWD: 4
TTY: 8
Profile Name: 32
Profile & Session Name: 65
User: 128
Host: 256

George Nachman

unread,
Aug 12, 2018, 10:02:29 PM8/12/18
to iterm2-...@googlegroups.com
I should add that the best way to figure this out is to export your profile as JSON, change one thing, export it as JSON again, and diff the two JSON blobs.

Chris Caro

unread,
Feb 9, 2022, 10:57:10 PM2/9/22
to iterm2-discuss
Thanks for suggesting exporting your profile as .json. My first impression is that it's easy to read and modify. I asked a question today about the font color of the title. Can you please suggest the parameter that I must change in the .json file of my profile?

Chris Caro

unread,
Feb 13, 2022, 10:33:11 PM2/13/22
to iterm2-discuss
Is there a way to change the font color of the title in iTerm? I've been trying to change it for more than a week...
On Monday, August 13, 2018 at 5:02:29 AM UTC+3 George Nachman wrote:

George Nachman

unread,
Feb 17, 2022, 12:24:58 PM2/17/22
to iterm2-...@googlegroups.com
No, there isn’t as setting for this. Depending not he window style it may be impossible. Is this for accessibility reasons or something else?

Chris Caro

unread,
Feb 17, 2022, 12:35:12 PM2/17/22
to iterm2-discuss
Yes, I wanted to change the font color from grey to white to better read the path that's located in the title. I use the Minimal theme... Here is a screenshot. Please take a look. Screen Shot 2022-02-17 at 7.29.41 PM.png

George Nachman

unread,
Feb 18, 2022, 2:56:28 AM2/18/22
to iterm2-...@googlegroups.com
You could use a status bar for this. If you configure the status bar to be on the top, it will take the place of the title. Its colors are super configurable.

Chris Caro

unread,
Feb 19, 2022, 10:14:35 AM2/19/22
to iterm2-discuss
Thank you. It partially solved the issue.
Reply all
Reply to author
Forward
0 new messages