mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Break the colour palette into a struct rather than just a single array
and use that to support the OSC palette-setting sequences in popups. Also add a pane-colours array option to specify the defaults. GitHub issue 2815.
This commit is contained in:
		@@ -185,6 +185,7 @@ const struct options_name_map options_other_names[] = {
 | 
			
		||||
	{ "display-panes-color", "display-panes-colour" },
 | 
			
		||||
	{ "display-panes-active-color", "display-panes-active-colour" },
 | 
			
		||||
	{ "clock-mode-color", "clock-mode-colour" },
 | 
			
		||||
	{ "pane-colors", "pane-colours" },
 | 
			
		||||
	{ NULL, NULL }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
@@ -973,6 +974,14 @@ const struct options_table_entry options_table[] = {
 | 
			
		||||
	  .text = "Style of the pane status lines."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "pane-colours",
 | 
			
		||||
	  .type = OPTIONS_TABLE_COLOUR,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
 | 
			
		||||
	  .default_str = "",
 | 
			
		||||
	  .flags = OPTIONS_TABLE_IS_ARRAY,
 | 
			
		||||
	  .text = "The default colour palette for colours zero to 255."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "remain-on-exit",
 | 
			
		||||
	  .type = OPTIONS_TABLE_CHOICE,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user