Re: Bug: garbled history search when using "\e[K" is PS1

2022-06-30 Thread Andreas Schwab
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

Bug: garbled history search when using "\e[K" is PS1

2022-06-30 Thread Constantine Bytensky
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