From f01bc4d59960c8832f5bae5f181a28d9f762c756 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 3 Jan 2021 23:53:09 +0100 Subject: [PATCH] readline: change cursor shape when entering vi cmd mode --- files/inputrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/inputrc b/files/inputrc index aa85fc2..c0bff7b 100644 --- a/files/inputrc +++ b/files/inputrc @@ -229,7 +229,7 @@ set show-mode-in-prompt on # 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 # 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 # 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 # non-printing characters, which can be used to embed a terminal control # 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 # appended to the filename when listing possible completions.