On 12/28/22 2:09 PM, The Administrator wrote:
Hello and happy holiday hacking. Does the read builtin stand to benefit
from \[ and \] denotation ala $PS1 and friends? Here is a quick example:
read -erp "$( tput setaf 2 )NEW:$( tput sgr0 ) "
You can either use $'\001' and $'\002' in place of
There's a (secret?) feature of readline that lets you do \[ \] type stuff
using 001 and 002 bytes instead.
This made my day! Thank you.
On Wed, Dec 28, 2022 at 01:09:02PM -0600, The Administrator wrote:
> Hello and happy holiday hacking. Does the read builtin stand to benefit
> from \[ and \] denotation ala $PS1 and friends? Here is a quick example:
>
> > read -erp "$( tput setaf 2 )NEW:$( tput sgr0 ) "
>
> Fill the line with “