Re: Prompt color reset after using arrow keys

2024-08-09 Thread Chet Ramey
On 8/7/24 5:05 PM, Gioele Barabucci wrote: Hi, in bash 5.2.21 the following PS1 assignment     PS1=$'\[\e[0;34;42m\]'$(printf x%.0s {1..111})$'\[\e[0m\]\$ ' should make the prompt a long list of "x", displayed in blue on a red background. This is in fact the case. However, if the terminal

Prompt color reset after using arrow keys

2024-08-07 Thread Gioele Barabucci
Hi, in bash 5.2.21 the following PS1 assignment PS1=$'\[\e[0;34;42m\]'$(printf x%.0s {1..111})$'\[\e[0m\]\$ ' should make the prompt a long list of "x", displayed in blue on a red background. This is in fact the case. However, if the terminal window is smaller than 111 characters and, t