mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Add options and flags for menu styles similar to those existing for
popups, from Alexis Hildebrandt. GitHub issue 3650.
This commit is contained in:
		@@ -327,6 +327,33 @@ const struct options_table_entry options_table[] = {
 | 
			
		||||
		  "Empty does not write a history file."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "menu-style",
 | 
			
		||||
	  .type = OPTIONS_TABLE_STRING,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_WINDOW,
 | 
			
		||||
	  .flags = OPTIONS_TABLE_IS_STYLE,
 | 
			
		||||
	  .default_str = "default",
 | 
			
		||||
	  .separator = ",",
 | 
			
		||||
	  .text = "Default style of menu."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "menu-border-style",
 | 
			
		||||
	  .type = OPTIONS_TABLE_STRING,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_WINDOW,
 | 
			
		||||
	  .default_str = "default",
 | 
			
		||||
	  .flags = OPTIONS_TABLE_IS_STYLE,
 | 
			
		||||
	  .separator = ",",
 | 
			
		||||
	  .text = "Default style of menu borders."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "menu-border-lines",
 | 
			
		||||
	  .type = OPTIONS_TABLE_CHOICE,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_WINDOW,
 | 
			
		||||
	  .choices = options_table_popup_border_lines_list,
 | 
			
		||||
	  .default_num = BOX_LINES_SINGLE,
 | 
			
		||||
	  .text = "Type of characters used to draw menu border lines. Some of "
 | 
			
		||||
	          "these are only supported on terminals with UTF-8 support."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "message-limit",
 | 
			
		||||
	  .type = OPTIONS_TABLE_NUMBER,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_SERVER,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user