aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-09 17:40:17 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-09 17:40:17 +0000
commit167a8c9edc2f3faf0613b0aa6a2b3bc92ebdf814 (patch)
treeb98ad5512844b4b79336cae73ad61a4cdb61c193 /tmux.c
parent97eb537f38f732f86a046e6fee9116c55c1ff706 (diff)
downloadrtmux-167a8c9edc2f3faf0613b0aa6a2b3bc92ebdf814.tar.gz
rtmux-167a8c9edc2f3faf0613b0aa6a2b3bc92ebdf814.tar.bz2
rtmux-167a8c9edc2f3faf0613b0aa6a2b3bc92ebdf814.zip
Sync OpenBSD patchset 229:
Options to set the colours and attributes for status-left/-right. From Thomas Adam, thanks.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/tmux.c b/tmux.c
index f082dfb9..69826d35 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.156 2009-08-09 16:50:57 tcunha Exp $ */
+/* $Id: tmux.c,v 1.157 2009-08-09 17:40:17 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -368,11 +368,17 @@ main(int argc, char **argv)
options_set_number(&global_s_options, "status-interval", 15);
options_set_number(&global_s_options, "status-keys", MODEKEY_EMACS);
options_set_number(&global_s_options, "status-justify", 0);
- options_set_number(&global_s_options, "status-left-length", 10);
- options_set_number(&global_s_options, "status-right-length", 40);
options_set_string(&global_s_options, "status-left", "[#S]");
+ options_set_number(&global_s_options, "status-left-attr", 0);
+ options_set_number(&global_s_options, "status-left-fg", 8);
+ options_set_number(&global_s_options, "status-left-bg", 8);
+ options_set_number(&global_s_options, "status-left-length", 10);
options_set_string(
&global_s_options, "status-right", "\"#22T\" %%H:%%M %%d-%%b-%%y");
+ options_set_number(&global_s_options, "status-right-attr", 0);
+ options_set_number(&global_s_options, "status-right-fg", 8);
+ options_set_number(&global_s_options, "status-right-bg", 8);
+ options_set_number(&global_s_options, "status-right-length", 40);
if (flags & IDENTIFY_UTF8)
options_set_number(&global_s_options, "status-utf8", 1);
else