readline: change cursor shape when entering vi cmd mode

This commit is contained in:
Fernando Schauenburg 2021-01-03 23:53:09 +01:00
parent 57aaa79a30
commit f01bc4d599

View file

@ -229,7 +229,7 @@ set show-mode-in-prompt on
# is available. Use the \1 and \2 escapes to begin and end sequences of # is available. Use the \1 and \2 escapes to begin and end sequences of
# non-printing characters, which can be used to embed a terminal control # non-printing characters, which can be used to embed a terminal control
# sequence into the mode string. # sequence into the mode string.
set vi-cmd-mode-string "\1\e[1;31m\2: \1\e[0m\2" set vi-cmd-mode-string \1\e[2 q\2
# If the show-mode-in-prompt variable is enabled, this string is displayed # If the show-mode-in-prompt variable is enabled, this string is displayed
# immediately before the last line of the primary prompt when vi editing mode # immediately before the last line of the primary prompt when vi editing mode
@ -238,7 +238,7 @@ set vi-cmd-mode-string "\1\e[1;31m\2: \1\e[0m\2"
# is available. Use the \1 and \2 escapes to begin and end sequences of # is available. Use the \1 and \2 escapes to begin and end sequences of
# non-printing characters, which can be used to embed a terminal control # non-printing characters, which can be used to embed a terminal control
# sequence into the mode string. # sequence into the mode string.
set vi-ins-mode-string "\1\e[0m\2" set vi-ins-mode-string \1\e[6 q\2
# If set to On, a character denoting a file's type as reported by stat(2) is # If set to On, a character denoting a file's type as reported by stat(2) is
# appended to the filename when listing possible completions. # appended to the filename when listing possible completions.