help-bash
[Top][All Lists]
Advanced

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

Re: Construct ANSI colour codes


From: Alex fxmbsw7 Ratchev
Subject: Re: Construct ANSI colour codes
Date: Wed, 7 Apr 2021 22:38:09 +0200

man console_codes

On Wed, Apr 7, 2021, 22:17 <pauline-galea@gmx.com> wrote:

> 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]