From e6d35b6aa49ca708f62a289bc7c44ad09f5a393f Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 7 Mar 2009 10:29:06 +0000 Subject: Support for 88 colour terminals. --- tmux.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tmux.c') 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 @@ -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); -- cgit