mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Do not send DA and DSR again if already have a response.
This commit is contained in:
		
							
								
								
									
										6
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								tty.c
									
									
									
									
									
								
							@@ -338,8 +338,10 @@ tty_start_tty(struct tty *tty)
 | 
			
		||||
			tty->flags |= TTY_FOCUS;
 | 
			
		||||
			tty_puts(tty, "\033[?1004h");
 | 
			
		||||
		}
 | 
			
		||||
		tty_puts(tty, "\033[c\033[1337n"); /* DA and DSR */
 | 
			
		||||
 | 
			
		||||
		if (~tty->flags & TTY_HAVEDA)
 | 
			
		||||
			tty_puts(tty, "\033[c");
 | 
			
		||||
		if (~tty->flags & TTY_HAVEDSR)
 | 
			
		||||
			tty_puts(tty, "\033[1337n");
 | 
			
		||||
	} else
 | 
			
		||||
		tty->flags |= (TTY_HAVEDA|TTY_HAVEDSR);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user