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[1;35m@\033[0m\033[4m\H\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[0m\033[0;37

[PATCH] quote command and function names in `complete -p'

2021-06-27 Thread Koichi Murase
Description: In order to make the output of `complete -p' reusable as shell commands, the function name after `-F' and the command names also needs to be properly quoted. I understand that both the function names and the command names don't usually need to be quoted, but in principle it

[PATCH] Fix READLINE_ARGUMENT with "M-1 M-2" and with `vi-arg-digit'

2021-06-27 Thread Koichi Murase
Description: Now "bind -x" can be used with numeric arguments when the numeric arguments are specified by e.g. "M-1 2 3". However, when the numeric arguments are specified by e.g. "M-1 M-2 M-3", it still fails with the error message `bash_execute_unix_command: cannot find keymap for com