I need advice as to handle LS_COLORS. IMO, it's an absolute nightmare. Instead of using
SGR 38:2 and 48:2 variants (which allow you know what the desired color is) it use SGR 38:5 and 48:5 which indicate a specific color number. The problem is, there's no real way to know what the color value is supposed to be. It might be possible to query the color values with color_content() but as was discussed here...
...it's not guaranteed to work. It seems the fundamental problem is that LS_COLORS takes advantage of information known only to the terminal and whoever specified the color values. Am I missing something here?
--
Bryan
<><