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.
This commit is contained in:
Nicholas Marriott 2020-05-15 13:15:12 +01:00
parent 7501e297dd
commit 3e60ab1caf

View File

@ -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);