2 ms·
> The most common examples I see these days are for red/yellow/green status text in shell scripts. Please don't do that without first checking the background c
by kps 3y ago
> The most common examples I see these days are for red/yellow/green status text in shell scripts.
Please don't do that without first checking the background colour. Yellow in particular on a light background is unreadable.
(On an xterm-compatible terminal you can get the current background colour with OSC 11 ; ? BEL. Some popular terminals lie about being xterm-compatible, though.)