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
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