On Jun 30 2022, Constantine Bytensky wrote:
> 1. Make PS1="\[\e[K\]"
CSI K clears the whole line, clobbering the display region controlled by
readline, so that is not a valid use of control sequences.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552
Hello,
There is a bug when I use “Erase in Lin” "\e[K" char in my PS1 prompt.
How to reproduce:
1. Make PS1="\[\e[K\]"
2. Press ^R to start history-search
3. Type a few chars to find history string (assuming history not empty)
4. Press Enter of End to apply history string
Result:
Incomplete his