[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unprintable characters in PS1 different on 5.0.3 vs. 5.0.18?
From: |
Chet Ramey |
Subject: |
Re: unprintable characters in PS1 different on 5.0.3 vs. 5.0.18? |
Date: |
Sun, 7 Feb 2021 12:04:05 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
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 chet@case.edu http://tiswww.cwru.edu/~chet/