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.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/