diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-06-10 07:24:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-06-10 07:24:11 +0000 |
commit | aa63b0eb78b8c80916e5ad0252326c5361dbe3ac (patch) | |
tree | c2b20f752600ea6e83ef19658ebfa1f87c32f4f8 /usr.bin/tmux/input.c | |
parent | 3660ab15a52d6002c9bf4ec9b4f4775241c1ab46 (diff) |
Add an "always" value to the extended-keys option to always forward
these keys to applications inside tmux.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 0ce7a65adfc..c791567db51 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.188 2021/02/18 13:30:24 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.189 2021/06/10 07:24:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1390,6 +1390,8 @@ input_csi_dispatch(struct input_ctx *ictx) case INPUT_CSI_MODSET: n = input_get(ictx, 0, 0, 0); m = input_get(ictx, 1, 0, 0); + if (options_get_number(global_options, "extended-keys") == 2) + break; if (n == 0 || (n == 4 && m == 0)) screen_write_mode_clear(sctx, MODE_KEXTENDED); else if (n == 4 && (m == 1 || m == 2)) |