mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Add an option to move the status line to the top of the screen,
requested by many.
This commit is contained in:
		
							
								
								
									
										14
									
								
								status.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								status.c
									
									
									
									
									
								
							@@ -60,6 +60,20 @@ status_out_cmp(struct status_out *so1, struct status_out *so2)
 | 
			
		||||
	return (strcmp(so1->cmd, so2->cmd));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Get screen line of status line. -1 means off. */
 | 
			
		||||
int
 | 
			
		||||
status_at_line(struct client *c)
 | 
			
		||||
{
 | 
			
		||||
	struct session	*s = c->session;
 | 
			
		||||
 | 
			
		||||
	if (!options_get_number(&s->options, "status"))
 | 
			
		||||
		return (-1);
 | 
			
		||||
 | 
			
		||||
	if (options_get_number(&s->options, "status-position") == 0)
 | 
			
		||||
		return (0);
 | 
			
		||||
	return (c->tty.sy - 1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Retrieve options for left string. */
 | 
			
		||||
char *
 | 
			
		||||
status_redraw_get_left(struct client *c,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user