[Top][All Lists]

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

Construct ANSI colour codes

From: pauline-galea
Subject: Construct ANSI colour codes
Date: Wed, 7 Apr 2021 22:13:39 +0200

I need ideas on how to construct ANSI colour codes, without hard-coding
them.  Would really still need some scheme such that the actual selection
is human readable.  Perhaps a function that returns you the format string.

Example of scheme

'd' for dim, 'n' for normal
'Gn' for Green, 'Rd' for Red, 'Bl' for blue

'dGn' for dim green foreground

'Bl_dGn' for blue background and dim green foreground

reply via email to

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