diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-05 23:03:26 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-05 23:03:26 +0100 |
commit | 6b786fa7e6d83688729b236d00afb6dd25b6dbb5 (patch) | |
tree | f5496dfb3b7e029644f0522966123180f9882de3 /.config | |
parent | b5280c920e981bcc15656c1e340ed476868c09eb (diff) |
readline: Increase terminal compatibility
Diffstat (limited to '.config')
-rw-r--r-- | .config/readline/inputrc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.config/readline/inputrc b/.config/readline/inputrc index 8c5cb4d..a5d3244 100644 --- a/.config/readline/inputrc +++ b/.config/readline/inputrc @@ -15,8 +15,15 @@ set show-all-if-ambiguous on $if editing-mode == vi # Change cursor to a bar when in insert mode set show-mode-in-prompt on - set vi-ins-mode-string "\1\e[6 q\2" - set vi-cmd-mode-string "\1\e[2 q\2" + + # Taken straight from the Arch Wiki + $if term == linux + set vi-ins-mode-string "\1\e[?0c\2" + set vi-cmd-mode-string "\1\e[?8c\2" + $else + set vi-ins-mode-string "\1\e[6 q\2" + set vi-cmd-mode-string "\1\e[2 q\2" + $endif $endif $if Bash |