From 129d6e7ff3ae6add17f88d6737810bbdaa3a25cf Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 19 Jan 2025 18:15:24 +0100 Subject: [PATCH] enable extended keys only when detecting xterm, mintty or iTerm2, fixes #776 see https://github.com/tmux/tmux/wiki/Modifier-Keys#extended-keys --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 44d26fd..b628e84 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -16,7 +16,7 @@ set -g default-terminal "screen-256color" -%if #{>=:#{version},3.2} +%if #{||:#{m/ri:mintty|iTerm,#{TERM_PROGRAM}},#{!=:#{XTERM_VERSION},}} set -g extended-keys on # needed by Control + Shift bindings %endif set -s escape-time 10 # faster command sequences