aboutsummaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-04-21 09:32:48 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-06-10 09:21:09 +0100
commit5107e848977640398843e720e26d45a66954e7f9 (patch)
tree439794dba6fe0eda17835b2a8d76c5f67b4519d4 /screen.c
parent736a276cc9bdb97bf35caa1995a54d328a839102 (diff)
downloadrtmux-5107e848977640398843e720e26d45a66954e7f9.tar.gz
rtmux-5107e848977640398843e720e26d45a66954e7f9.tar.bz2
rtmux-5107e848977640398843e720e26d45a66954e7f9.zip
Add an "always" value to the extended-keys option to always forward these keys
to applications inside tmux.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 2b9d70de..2b83c285 100644
--- a/screen.c
+++ b/screen.c
@@ -100,7 +100,9 @@ screen_reinit(struct screen *s)
s->rupper = 0;
s->rlower = screen_size_y(s) - 1;
- s->mode = MODE_CURSOR | MODE_WRAP;
+ s->mode = MODE_CURSOR|MODE_WRAP;
+ if (options_get_number(global_options, "extended-keys") == 2)
+ s->mode |= MODE_KEXTENDED;
if (s->saved_grid != NULL)
screen_alternate_off(s, NULL, 0);