Re: Another redisplay issue in single-byte locales

2024-11-06 Thread Chet Ramey
On 8/13/24 10:23 PM, Grisha Levit wrote: In a single-byte locale, if the prompt is wider than the screen width and contains invisible characters on the last line, and the input line is also wider than the screen width, redisplay gets messed up: Thanks for the report. The code that handled this

Another redisplay issue in single-byte locales

2024-08-13 Thread Grisha Levit
In a single-byte locale, if the prompt is wider than the screen width and contains invisible characters on the last line, and the input line is also wider than the screen width, redisplay gets messed up: printf -v s '%*s' "$COLUMNS" PS1=$s'%\[\e[0m\]' LC_ALL=C bash --norc -in <<< $s$'X\caY