mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Improve logging of screen mode changes.
This commit is contained in:
		
							
								
								
									
										8
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tty.c
									
									
									
									
									
								
							@@ -665,8 +665,12 @@ tty_update_mode(struct tty *tty, int mode, struct screen *s)
 | 
			
		||||
		mode &= ~MODE_CURSOR;
 | 
			
		||||
 | 
			
		||||
	changed = mode ^ tty->mode;
 | 
			
		||||
	if (changed != 0)
 | 
			
		||||
		log_debug("%s: update mode %x to %x", c->name, tty->mode, mode);
 | 
			
		||||
	if (log_get_level() != 0 && changed != 0) {
 | 
			
		||||
		log_debug("%s: current mode %s", c->name,
 | 
			
		||||
		    screen_mode_to_string(tty->mode));
 | 
			
		||||
		log_debug("%s: setting mode %s", c->name,
 | 
			
		||||
		    screen_mode_to_string(mode));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (s != NULL) {
 | 
			
		||||
		if (strcmp(s->ccolour, tty->ccolour) != 0)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user