[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multi-line PS1 color disappearance problem
From: |
email |
Subject: |
Re: Multi-line PS1 color disappearance problem |
Date: |
Fri, 22 Dec 2023 07:25:30 +0000 |
User-agent: |
Purely Mail via Roundcube/1.6.5 |
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