Re: The cursor moves abnormally

2021-06-27 Thread Greg Wooledge
On Sun, Jun 27, 2021 at 12:19:00PM +, cheng wensui wrote: > bash 5.1.4(1)-release (x86_64-pc-linux-gnu) > > when ps1 is too long ,The cursor moves abnormally ,Entering letters too > many too long is also abnormal > > example : > PS1='\033[5;37m[\033[0m\u\033[

The cursor moves abnormally

2021-06-27 Thread cheng wensui
bash 5.1.4(1)-release (x86_64-pc-linux-gnu) when ps1 is too long ,The cursor moves abnormally ,Entering letters too many too long is also abnormal example : PS1='\033[5;37m[\033[0m\u\033[1;35m@\033[0m\033[4m\H\033[0m\033[1;31m(\t)\033[0m\W \033[0;33m\#/\!\033[0m\033[5;37m]\033[0