help-bash
[Top][All Lists]
Advanced

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

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


From: Pierre Gaston
Subject: Re: [Help-bash] read -ep and ANSI colour sequences
Date: Wed, 20 Feb 2013 13:33:16 +0200

On Wed, Feb 20, 2013 at 1:30 PM, Chris Down <address@hidden> wrote:
> On 2013-02-20 06:18, Chris F.A. Johnson wrote:
>> read -ep $'\e[41;37;1m >> \e[0m '
>
> Whilst this is valid from bash2 onwards and should work fine, you should be
> aware that if you require POSIX compatibility down the line, this will break.
>
> ( Yes, I am aware this is `help-bash', not `help-posix' ;-) )
>
> Chris
>
For some value of fine, afaik in both case readline will not wrap
correctly and I think there is no way to escape the terminal code like
in PS1



reply via email to

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