[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is the best way to handle LS_COLORS ?

From: Bryan Christ
Subject: What is the best way to handle LS_COLORS ?
Date: Fri, 27 Mar 2020 14:48:20 -0500

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]