help-bash
[Top][All Lists]
Advanced

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

Re: colored verbose


From: alex xmb sw ratchev
Subject: Re: colored verbose
Date: Wed, 8 Nov 2023 14:10:36 +0100

another candidate , using xtracefd
it seems work perfect
just cant copypaste

greets

On Wed, Nov 8, 2023, 11:27 AM lacsaP Patatetom <patatetom@gmail.com> wrote:

> hi,
>
> is it possible to distinguish the lines displayed by bash's verbose mode by
> coloring them ?
>
> for example, with this little script, make the first and third displayed
> lines stand out by coloring them :
>
> bash -v <<~~~
> echo hello world
> seq 5
> ~~~
> echo hello world
> hello world
> seq 5
> 1
> 2
> 3
> 4
> 5
>
> I can color script comments by adding control characters (#\[1;34m colored
> comment\[0m) that are executed when a comment is displayed, but it's not
> very practical or aesthetic...
>
> regards, lacsaP.
>

Attachment: bs4
Description: Binary data


reply via email to

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