On Fri, Oct 20, 2023 at 04:47:59PM +0100, Pádraig Brady wrote:
Yes coloring is a plausible addition to du,
and would make sense to follow the same options, env vars as ls.
I'd argue that the use of colors in coreutils shouldn't really expand
unless/until there's a more robust & generic interface than embedding
escape codes in the utility sources and relying on stuff like terminal
names in dircolors. Colorizing more outputs would certainly make it
easier to parse some of the walls of text, but it seems that going
down that road is an excellent time to refactor the old ls color hack
rather than trying to extend it.