mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
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:
parent
7501e297dd
commit
3e60ab1caf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user