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.
There doesn't see a way to change environmental variable in an already running process. I wonder how other terminals handle this.
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).
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.
Oops, you're right. I forgot that konsole doesn't support OSC 4.
Lack of OSC 4 support is tracked in bug 233991.
... 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.