|
From: | n952162 |
Subject: | Re: unprintable characters in PS1 different on 5.0.3 vs. 5.0.18? |
Date: | Sun, 7 Feb 2021 18:21:53 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |