On 1/2/25 9:12 AM, Andreas Schwab wrote:
$ PS1="\[$(tput bold)\]\w\\\$\[$(tput sgr0)\] " $ cd /tmp $ for i in 1 2 3 4 5 6 7 8; do mkdir 1234567890; cd 1234567890; doneThe second line of the prompt is not rendered in bold, and as the edited line gets longer the cursor jumps to the leftmost screen column.
Thanks for the report. The cursor positioning bug is fixed, but the prompt rendering issue is not, and probably won't be for a while. The reason for that is the readline redisplay algorithm doesn't reprint the entire multiline prompt on each input character, and only redisplays the last line (the other lines are not going to change). With the prompt you're using, the second and subsequent times you display that second line of the prompt, readline is going to be doing it with the terminal in normal mode. Readline chooses to reprint the entire second line of the prompt because it has invisible characters. I'll see if there's something that I can do to inhibit that in certain cases. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature