Bug 396960 - Feature Request: ability to set Konsole tab background color using escape codes (like can already be done for the terminal background color)
Summary: Feature Request: ability to set Konsole tab background color using escape cod...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: tabbar (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Ahmet Hakan Çelik
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2018-07-29 15:28 UTC by Xtal
Modified: 2024-08-31 17:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Color tabs in Firefox (171.25 KB, image/png)
2018-07-29 15:28 UTC, Xtal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xtal 2018-07-29 15:28:38 UTC
Created attachment 114193 [details]
Color tabs in Firefox

Konsole already supports setting the background color of the current terminal by outputting an escape code within the terminal, example shell command: 

    echo -ne '\e]11;#0000ff\a'

...this sets the terminal background color to hex code #0000ff (blue).

It would be awesome if something similar could be done for Konsole's tabs.  This would make them much easier to tell apart quickly without needing to read them every time, and make switching tabs very efficient, easily when logged into lots of different hosts.

This would also make it easy for people to write simple shell scripts etc that automatically set the tab color based on hostname, username and lots of other things.

I've attached an example screenshot of a Firefox plugin that lets the user set tab background colors.
Comment 1 Ahmet Hakan Çelik 2024-06-21 09:03:34 UTC
This is currently assigned to Konsole Developer. If it's just assigned by default, I can assign it myself and develop it.
Comment 2 Bug Janitor Service 2024-06-22 13:45:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/1008
Comment 3 Kurt Hindenburg 2024-07-24 18:53:38 UTC
Git commit 9c72d6301dead5ce1e69f79c4416d8d12cf0d2d4 by Kurt Hindenburg, on behalf of Ahmet Hakan Çelik.
Committed on 24/07/2024 at 18:53.
Pushed by hindenburg into branch 'master'.

Allow setting Konsole tab color with escape codes

M  +9    -0    src/session/Session.cpp
M  +1    -0    src/session/Session.h
M  +3    -0    src/session/SessionController.cpp

https://invent.kde.org/utilities/konsole/-/commit/9c72d6301dead5ce1e69f79c4416d8d12cf0d2d4