[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
- Construct ANSI colour codes,
pauline-galea <=
Re: Construct ANSI colour codes, Greg Wooledge, 2021/04/07