help-bash
[Top][All Lists]
Advanced

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

Re: Construct ANSI colour codes


From: Matias Fonzo
Subject: Re: Construct ANSI colour codes
Date: Wed, 07 Apr 2021 17:32:33 -0300
User-agent: Roundcube Webmail/1.4.11

El 2021-04-07 17:13, pauline-galea@gmx.com escribió:
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

See https://mywiki.wooledge.org/BashFAQ/037




reply via email to

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