Bug 336849 - Upon colorscheme changes, COLORFGBG is not modified in already running Konsole's tabs
Summary: Upon colorscheme changes, COLORFGBG is not modified in already running Konsol...
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-29 00:26 UTC by Keerthan Jaic
Modified: 2021-03-10 19:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keerthan Jaic 2014-06-29 00:26:55 UTC
When the colorscheme is modified through Settings->Edit Current Profile and applying, the colorscheme changes immediately, but COLORFGBG env var is not changed to the new value. It is necessary to restart konsole to get the correct value of COLORFGBG, therefore I cannot immediately use programs which use this env var to set their colorschemes.

Reproducible: Always

Steps to Reproduce:
1. Look at current COLORFGBG value
2. Switch to opposite theme(dark->light, or light->dark)
Actual Results:  
COLORFGBG remains the same

Expected Results:  
COLORFGBG should have changed to reflect new theme.
Comment 1 Kurt Hindenburg 2017-02-13 01:23:01 UTC
There doesn't see a way to change environmental variable in an already running process.  I wonder how other terminals handle this.
Comment 2 Egmont Koblinger 2017-02-14 15:52:34 UTC
For gnome-terminal see https://bugzilla.gnome.org/show_bug.cgi?id=733423 (spoiler: we don't set it at all for pretty much the same reason - as well as other reasons).
Comment 3 Kurt Hindenburg 2017-02-14 16:24:19 UTC
Thanks, not sure xtermcontrol is an option

xtermcontrol: --get-fg is unsupported or disallowed by this terminal. See also, TROUBLESHOOTING section of xtermcontrol(1) manpage.
Comment 4 Egmont Koblinger 2017-02-14 16:30:46 UTC
Oops, you're right. I forgot that konsole doesn't support OSC 4.
Comment 5 Egmont Koblinger 2017-02-14 16:37:33 UTC
Lack of OSC 4 support is tracked in bug 233991.
Comment 6 Egmont Koblinger 2017-02-14 16:39:15 UTC
... oh, and OSC 4 is about the palette colors only. The default background/foreground are actually OSC 10 and 11 if I recall correctly. It's pretty much the same story though.