On 7/9/23 22:20, Jens-Ulrik Petersen wrote:
Unfortunately there is no easy way to detect dark or light terminals,
to my knowledge at least.
You can use the xterm OSC 11;? sequence to request the text background color.
Emacs uses this to select light or dark theming.
--
--Per Bothner
per(a)bothner.com
http://per.bothner.com/