On 2/7/21 6:04 PM, Chet Ramey wrote:
On 2/7/21 11:51 AM, n952162 wrote:
Hi,

I use this string as my prompt:

   $?${boldon}$UCODE\w${boldoff}>

where boldon and boldoff are gotten from "tput smso" and "tput rmso".
Works fine on my x86_64 boxes at 5.0.18(1) but on my raspberry-pi, at
5.0.3(1), I need to use \[ and \].

You always need to use \[and \] to delimit sequences of non-printable
characters. If it worked without them, you were lucky.


ok, thank you.

Reply via email to