summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 13:15:12 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 13:15:12 +0100
commit3e60ab1cafaa00859bdb797918424910f374dee9 (patch)
tree6a102f70790e60b85ca27f8cfe796e66d8dfdcbc /input-keys.c
parent7501e297dd5c68e7f2014109f3f7f7424bb455d6 (diff)
Send conventional \033 sequences for keys with just Meta even if they came in
as an extended CSI u key sequence. It is much more useful for applications that don't understand CSI u to receive \033> for M-S-. rather than \033[62;3u.
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c
index e66b2f7e..611592b4 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -459,7 +459,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
* If this is a normal 7-bit key, just send it, with a leading escape
* if necessary. If it is a UTF-8 key, split it and send it.
*/
- justkey = (key & ~KEYC_META);
+ justkey = (key & ~(KEYC_META|KEYC_IMPLIED_META));
if (justkey <= 0x7f) {
if (key & KEYC_META)
bufferevent_write(bev, "\033", 1);