mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +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:
		@@ -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 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.
 | 
						 * 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 (justkey <= 0x7f) {
 | 
				
			||||||
		if (key & KEYC_META)
 | 
							if (key & KEYC_META)
 | 
				
			||||||
			bufferevent_write(bev, "\033", 1);
 | 
								bufferevent_write(bev, "\033", 1);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user