So, my goal is to figure out what amount of color support a system has.
What I mean by this is create a function supportsColor()
that checks how
many colors can be displayed in sys.stdout
, returning 0 for no color,
1 for 16 different colors support, 2 for 256 different colors support, and 3 for Truecolor (basically any colors).
An example (js package) of how it should work is this: https://github.com/chalk/supports-color