Changing Tab color changes font color of other tabs

Thanks for filing an issue! Please answer the questions below so I can help you.

  • iTerm2 version: Build 3.4.3
  • OS version: MacOS Big Sur, Version 11.2 (20D64)
  • Attach com.googlecode.iterm2.plist here: com.googlecode.iterm2.plist
  • Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
  • Attach a screen capture video if it would make the reproduction steps clearer.
  • Are you reporting a performance issue, excessive CPU usage, or a hang? => No
  • Are you reporting a crash? => No
  • Are you reporting excessive memory usage? => No

PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.

Detailed steps to reproduce the problem:

  1. Create a new MacOS user, start iTerm2, create multiple tabs
  2. Enter bash commands to change tab color (see https://iterm2.com/documentation-escape-codes.html)
tab-color() {
    echo -ne "\033]6;1;bg;red;brightness;$1\a"
    echo -ne "\033]6;1;bg;green;brightness;$2\a"
    echo -ne "\033]6;1;bg;blue;brightness;$3\a"
}
tab-color 255 0 0

What happened:

  • Tab color background correctly changed
  • Tab font colors changed to white for all tabs, texts cannot be read easily anymore tab-font-color

What should have happened:

  • Tab font colors should not have changed