mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Add message-line option to control where message and prompt go, from
Varun Kumar E in GitHub issue 3324.
This commit is contained in:
		@@ -42,6 +42,9 @@ static const char *options_table_clock_mode_style_list[] = {
 | 
			
		||||
static const char *options_table_status_list[] = {
 | 
			
		||||
	"off", "on", "2", "3", "4", "5", NULL
 | 
			
		||||
};
 | 
			
		||||
static const char *options_table_message_line_list[] = {
 | 
			
		||||
	"0", "1", "2", "3", "4", NULL
 | 
			
		||||
};
 | 
			
		||||
static const char *options_table_status_keys_list[] = {
 | 
			
		||||
	"emacs", "vi", NULL
 | 
			
		||||
};
 | 
			
		||||
@@ -542,13 +545,21 @@ const struct options_table_entry options_table[] = {
 | 
			
		||||
		  "'mode-keys' is set to 'vi'."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "message-line",
 | 
			
		||||
	  .type = OPTIONS_TABLE_CHOICE,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_SESSION,
 | 
			
		||||
	  .choices = options_table_message_line_list,
 | 
			
		||||
	  .default_num = 0,
 | 
			
		||||
	  .text = "Position (line) of messages and the command prompt."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "message-style",
 | 
			
		||||
	  .type = OPTIONS_TABLE_STRING,
 | 
			
		||||
	  .scope = OPTIONS_TABLE_SESSION,
 | 
			
		||||
	  .default_str = "bg=yellow,fg=black",
 | 
			
		||||
	  .flags = OPTIONS_TABLE_IS_STYLE,
 | 
			
		||||
	  .separator = ",",
 | 
			
		||||
	  .text = "Style of the command prompt."
 | 
			
		||||
	  .text = "Style of messages and the command prompt."
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ .name = "mouse",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user