On 2020-02-24, at 18:24:36, Cameron Simpson wrote:
> The colours are requested with escape sequences and the colour displayed are 
> thus dependent on your terminal emulator; the names "white" etc map to a 
> palette. So you want to start with the settings in your terminal emulator.
> For reference, here are some colours from my ancient ANSI colour python 
> module, where you can see 0, 7, 4 etc embedded.
>   # the known colour names and their escape sequences
>   COLOURS = {
>       ...
>       'green': '\033[32m',
>       ...
Isn't terminfo supposed to add an abstractlon layer
so I can just say "green" and not memorize " '\033[32m'"?

And I still prefer "#00FF00".


Reply via email to