Sync OpenBSD patchset 1015:

Add an option to move the status line to the top of the screen,
requested by many.
This commit is contained in:
Tiago Cunha
2012-01-29 12:57:01 +00:00
parent e23df3af5a
commit e4a7cefe0c
8 changed files with 180 additions and 92 deletions

View File

@ -47,6 +47,9 @@ const char *options_table_status_keys_list[] = {
const char *options_table_status_justify_list[] = {
"left", "centre", "right", NULL
};
const char *options_table_status_position_list[] = {
"top", "bottom", NULL
};
const char *options_table_bell_action_list[] = {
"none", "any", "current", NULL
};
@ -358,6 +361,12 @@ const struct options_table_entry session_options_table[] = {
.default_num = 10
},
{ .name = "status-position",
.type = OPTIONS_TABLE_CHOICE,
.choices = options_table_status_position_list,
.default_num = 1
},
{ .name = "status-right",
.type = OPTIONS_TABLE_STRING,
.default_str = "\"#22T\" %H:%M %d-%b-%y"