support setting title bar color by title bar content #11661

Closed
opened 2026-01-31 02:53:58 +00:00 by claunia · 3 comments
Owner

Originally created by @uishon on GitHub (Dec 2, 2020).

When running a WSL session or ssh-ing to some remote machine - terminal tab title is changed accordingly (shows user@host: <folder-name>). Would be nice if it'd be possible to define the title bar color (and, possibly, also icon) as a function of some regex expression over the title text (instead of having to define a profile per such case).

Originally created by @uishon on GitHub (Dec 2, 2020). When running a WSL session or `ssh`-ing to some remote machine - terminal tab title is changed accordingly (shows `user@host: <folder-name>`). Would be nice if it'd be possible to define the title bar color (and, possibly, also icon) as a function of some regex expression over the title text (instead of having to define a profile per such case).
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 02:53:58 +00:00
Author
Owner

@Don-Vito commented on GitHub (Dec 2, 2020):

@uishon - please review if https://github.com/microsoft/terminal/issues/7906 covers all aspects of your idea.

@Don-Vito commented on GitHub (Dec 2, 2020): @uishon - please review if https://github.com/microsoft/terminal/issues/7906 covers all aspects of your idea.
Author
Owner

@uishon commented on GitHub (Dec 2, 2020):

Missed it... It does, more-or-less. The only thing that's missing there is the option to extend this to something a bit more generic - supporting not just the tab color but, also, additional profile attributes (e.g., title icon, terminal background, etc.). I'll add it as a comment there and close this one.

@uishon commented on GitHub (Dec 2, 2020): Missed it... It does, more-or-less. The only thing that's missing there is the option to extend this to something a bit more generic - supporting not just the tab color but, also, additional profile attributes (e.g., title icon, terminal background, etc.). I'll add it as a comment there and close this one.
Author
Owner

@zadjii-msft commented on GitHub (Dec 2, 2020):

Thanks for the help triaging @Don-Vito, and thanks for following up!

@zadjii-msft commented on GitHub (Dec 2, 2020): Thanks for the help triaging @Don-Vito, and thanks for following up!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11661