From 4a96d6dfb62a58267d3ce34851e37e97aa3338ca Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 29 Jan 2012 09:37:03 +0000 Subject: Add an option to move the status line to the top of the screen, requested by many. --- usr.bin/tmux/options-table.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux/options-table.c') diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c index 7513979280f..e152a130eba 100644 --- a/usr.bin/tmux/options-table.c +++ b/usr.bin/tmux/options-table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options-table.c,v 1.19 2012/01/21 08:40:09 nicm Exp $ */ +/* $OpenBSD: options-table.c,v 1.20 2012/01/29 09:37:02 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -48,6 +48,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 }; @@ -359,6 +362,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" -- cgit v1.2.3