diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 17:40:24 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 17:40:24 +0100 |
commit | c364a7142c10af9a82b0ef19a3ef204b605a225d (patch) | |
tree | 45e7c1dc54f4e6ea894bede5dfaecaad89bd26fd /input-keys.c | |
parent | 3a4f3ee087ab5273e5d49ab33abf9135c3a21636 (diff) | |
download | rtmux-c364a7142c10af9a82b0ef19a3ef204b605a225d.tar.gz rtmux-c364a7142c10af9a82b0ef19a3ef204b605a225d.tar.bz2 rtmux-c364a7142c10af9a82b0ef19a3ef204b605a225d.zip |
Only forward extended keys if the application has requested them, even though
we use the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as
well.
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/input-keys.c b/input-keys.c index b7c02ccd..07f102b8 100644 --- a/input-keys.c +++ b/input-keys.c @@ -496,6 +496,8 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) } /* No builtin key sequence; construct an extended key sequence. */ + if (~s->mode & MODE_KEXTENDED) + goto missing; outkey = (key & KEYC_MASK_KEY); if (outkey >= KEYC_BASE) { switch (outkey) { |