Re: Read Prompt Width Miscalculation (Non-Printing Characters)

2022-12-28 Thread The Administrator
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.



Re: Read Prompt Width Miscalculation (Non-Printing Characters)

2022-12-29 Thread The Administrator
... or you can write your prompt string as you would write PS1 and use the  
${word@P} expansion when you pass it as an argument to `read' (preferred).


This is new to me.  Thank you.

Should I write a patch for the man page?