Bug 336849

Summary: Upon colorscheme changes, COLORFGBG is not modified in already running Konsole's tabs
Product: [Applications] konsole Reporter: Keerthan Jaic <jckeerthan>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: minor CC: cpigat242, jckeerthan, lucas.yamanishi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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.