mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										14
									
								
								screen.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								screen.c
									
									
									
									
									
								
							@@ -182,6 +182,20 @@ screen_reset_tabs(struct screen *s)
 | 
			
		||||
		bit_set(s->tabs, i);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Set default cursor style and colour from options. */
 | 
			
		||||
void
 | 
			
		||||
screen_set_default_cursor(struct screen *s, struct options *oo)
 | 
			
		||||
{
 | 
			
		||||
	int	c;
 | 
			
		||||
 | 
			
		||||
	c = options_get_number(oo, "cursor-colour");
 | 
			
		||||
	s->default_ccolour = c;
 | 
			
		||||
 | 
			
		||||
	c = options_get_number(oo, "cursor-style");
 | 
			
		||||
	s->default_mode = 0;
 | 
			
		||||
	screen_set_cursor_style(c, &s->default_cstyle, &s->default_mode);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Set screen cursor style and mode. */
 | 
			
		||||
void
 | 
			
		||||
screen_set_cursor_style(u_int style, enum screen_cursor_style *cstyle,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user