Browse Source

Ticket #4267: support of (alt+)shift+arrow keys in st terminal emulator.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
sdk 3 years ago
parent
commit
f533b37bf5
2 changed files with 17 additions and 0 deletions
  1. 1 0
      doc/NEWS
  2. 16 0
      misc/mc.lib

+ 1 - 0
doc/NEWS

@@ -37,6 +37,7 @@ Version 4.8.27
     * Filehighlight of JSON files as documents (#4250)
     * Support of alacritty terminal emulator (https://github.com/alacritty/alacritty) (#4248)
     * Support of foot terminal emulator (https://codeberg.org/dnkl/foot) (#4251)
+    * Support of (alt+)shift+arrow keys in st terminal emulator (st.suckless.org) (#4267)
     * Mouse support in screen: don't check $DISPLAY variable (#4233)
     * mc.ext: support fb2 e-books (#4167)
     * ext.d: use mediainfo to view info about various media files (#4167)

+ 16 - 0
misc/mc.lib

@@ -174,3 +174,19 @@ f17=\\e[e
 f18=\\e[f
 f19=\\e[g
 f20=\\e[h
+
+[terminal:st]
+shift-right=\\e[1\;5C
+shift-left=\\e[1\;5D
+shift-up=\\e[1\;2A
+shift-down=\\e[1\;2B
+alt-shift-right=\\e[1\;6C
+alt-shift-left=\\e[1\;6D
+alt-shift-up=\\e[1\;6A
+alt-shift-down=\\e[1\;6B
+
+[terminal:st-256color]
+copy=st
+
+[terminal:st-git-256color]
+copy=st