summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-11-27 10:51:34 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-11-27 10:54:18 +0000
commitb34d1c9d5a0860fbfbbd78790e77dee2563317c4 (patch)
treef6c2b4635ba6c4e265eb961b669eaf092c52294e /app-misc/mc/files
parentnet-libs/gnutls-3.6.15: add compilation fix for macOS (diff)
downloadgentoo-b34d1c9d5a0860fbfbbd78790e77dee2563317c4.tar.gz
gentoo-b34d1c9d5a0860fbfbbd78790e77dee2563317c4.tar.bz2
gentoo-b34d1c9d5a0860fbfbbd78790e77dee2563317c4.zip
app-misc/mc: map Shift+F<N> keys to alacritty and tmux
Similar to xterm and screen these should just work. Currently 'mc' hardcodes terminal names to add a workaround. Ideally it should not. Meanwhile expand the list of affected terminals. Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'app-misc/mc/files')
-rw-r--r--app-misc/mc/files/mc-4.8.25-alacritty-tmux.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/app-misc/mc/files/mc-4.8.25-alacritty-tmux.patch b/app-misc/mc/files/mc-4.8.25-alacritty-tmux.patch
new file mode 100644
index 000000000000..239ac5cb7cb2
--- /dev/null
+++ b/app-misc/mc/files/mc-4.8.25-alacritty-tmux.patch
@@ -0,0 +1,26 @@
+http://midnight-commander.org/ticket/4149
+--- a/misc/mc.lib
++++ b/misc/mc.lib
+@@ -116,6 +116,9 @@ alt-shift-left=\\e[1\;4D
+ alt-shift-up=\\e[1\;4A
+ alt-shift-down=\\e[1\;4B
+
++[terminal:alacritty]
++copy=xterm
++
+ [terminal:gnome]
+ copy=xterm
+
+@@ -137,6 +140,12 @@ copy=xterm
+ [terminal:screen-256color]
+ copy=xterm
+
++[terminal:tmux]
++copy=xterm
++
++[terminal:tmux-256color]
++copy=xterm
++
+ [terminal:ibmpc3]
+ f11=\\e[Y
+ f12=\\e[Z