On 2023-12-21 17:55, Chet Ramey wrote:
Think of the portion of a multi-line prompt before the final newline as
a
static string that will not affect the display of the last line.
Yep. Makes sense.
On 2023-12-21 17:32, Alex Ratchev wrote:
do u really PS1=\[\033 etc ?
try PS1='\[\e...'
in ' quotes
I forgot quotes from the email. But I did not know that '\e' is valid
ANSI escape sequence prefix. I just picked the one that looked most sane
to me from here (which does not contain '\e'):
https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797