[Top][All Lists]

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

Re: [Help-bash] read -ep and ANSI colour sequences

From: Chris Down
Subject: Re: [Help-bash] read -ep and ANSI colour sequences
Date: Wed, 20 Feb 2013 19:02:21 +0800
User-agent: Mutt/1.5.21 (2010-09-15)


On 2013-02-20 11:01, muji wrote:
> I would like to use ANSI colour sequences when showing a prompt using
> read -ep but I can't figure out how to do this. Is this possible? Am I
> missing something? Using standard escape sequences does not appear to
> work, my current test code looks like:

As far as I am aware this is not possible. The following should function as you
desire, however:

    printf '\033[1m%s\033[0m' ABC
    read value



reply via email to

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