mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Add a cursor-style option, from Alexis Hildebrandt in GitHub issue 2960.
This commit is contained in:
		@@ -57,6 +57,10 @@ static const char *options_table_bell_action_list[] = {
 | 
			
		||||
static const char *options_table_visual_bell_list[] = {
 | 
			
		||||
	"off", "on", "both", NULL
 | 
			
		||||
};
 | 
			
		||||
static const char *options_table_cursor_style_list[] = {
 | 
			
		||||
	"default", "blinking-block", "block", "blinking-underline", "underline",
 | 
			
		||||
	"blinking-bar", "bar", NULL
 | 
			
		||||
};
 | 
			
		||||
static const char *options_table_pane_status_list[] = {
 | 
			
		||||
	"off", "top", "bottom", NULL
 | 
			
		||||
};
 | 
			
		||||
@@ -243,6 +247,14 @@ const struct options_table_entry options_table[] = {
 | 
			
		||||
	  .text = "Colour of the cursor."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "cursor-style",
 | 
			
		||||
	  .type = OPTIONS_TABLE_CHOICE,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
 | 
			
		||||
	  .choices = options_table_cursor_style_list,
 | 
			
		||||
	  .default_num = 0,
 | 
			
		||||
	  .text = "Style of the cursor."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "default-terminal",
 | 
			
		||||
	  .type = OPTIONS_TABLE_STRING,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_SERVER,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user