aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-03-07 10:29:06 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-03-07 10:29:06 +0000
commite6d35b6aa49ca708f62a289bc7c44ad09f5a393f (patch)
tree2ada93cebada7d5bee775832411894ddad6b1680 /tmux.c
parent521fa7d6409da23ff3f9f357dc8244374ef01a9e (diff)
downloadrtmux-e6d35b6aa49ca708f62a289bc7c44ad09f5a393f.tar.gz
rtmux-e6d35b6aa49ca708f62a289bc7c44ad09f5a393f.tar.bz2
rtmux-e6d35b6aa49ca708f62a289bc7c44ad09f5a393f.zip
Support for 88 colour terminals.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tmux.c b/tmux.c
index c963a81e..4e362aa5 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.107 2009-02-13 21:39:45 nicm Exp $ */
+/* $Id: tmux.c,v 1.108 2009-03-07 10:29:06 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -191,10 +191,15 @@ main(int argc, char **argv)
unlock = flags = 0;
path = NULL;
- while ((opt = getopt(argc, argv, "2df:qS:uUVv")) != -1) {
+ while ((opt = getopt(argc, argv, "28df:qS:uUVv")) != -1) {
switch (opt) {
case '2':
flags |= IDENTIFY_256COLOURS;
+ flags &= ~IDENTIFY_88COLOURS;
+ break;
+ case '8':
+ flags |= IDENTIFY_88COLOURS;
+ flags &= ~IDENTIFY_256COLOURS;
break;
case 'f':
cfg_file = xstrdup(optarg);