mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add a format to show if client is a control client. From Bruno Sutic.
This commit is contained in:
		
							
								
								
									
										2
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								format.c
									
									
									
									
									
								
							@@ -711,6 +711,8 @@ format_defaults_client(struct format_tree *ft, struct client *c)
 | 
			
		||||
		format_add(ft, "client_tty", "%s", c->tty.path);
 | 
			
		||||
	if (c->tty.termname != NULL)
 | 
			
		||||
		format_add(ft, "client_termname", "%s", c->tty.termname);
 | 
			
		||||
	format_add(ft, "client_control_mode", "%d",
 | 
			
		||||
		!!(c->flags & CLIENT_CONTROL));
 | 
			
		||||
 | 
			
		||||
	t = c->creation_time.tv_sec;
 | 
			
		||||
	format_add(ft, "client_created", "%lld", (long long) t);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user