diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-25 20:08:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-25 20:08:57 +0000 |
commit | efe557313aef555b415fa2ea2c9a50c4404ed788 (patch) | |
tree | 4a197ade3d901f79bc8b0b990f9756d3da7f5f01 /tmux.c | |
parent | 9edb4d4b85a8714162817f2ae428e654e6bf1f31 (diff) | |
download | rtmux-efe557313aef555b415fa2ea2c9a50c4404ed788.tar.gz rtmux-efe557313aef555b415fa2ea2c9a50c4404ed788.tar.bz2 rtmux-efe557313aef555b415fa2ea2c9a50c4404ed788.zip |
Internal screen data rewrite for better 256 colour/UTF-8 support.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.c,v 1.75 2008-09-09 22:16:37 nicm Exp $ */ +/* $Id: tmux.c,v 1.76 2008-09-25 20:08:56 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -62,7 +62,7 @@ __dead void usage(void) { fprintf(stderr, - "usage: %s [-qVv] [-f file] [-S socket-path] [command [flags]]\n", + "usage: %s [-2dquVv] [-f file] [-S socket-path] [command [flags]]\n", __progname); exit(1); } @@ -179,8 +179,11 @@ main(int argc, char **argv) flags = 0; path = NULL; - while ((opt = getopt(argc, argv, "f:qS:uVv")) != EOF) { + while ((opt = getopt(argc, argv, "2df:qS:uVv")) != EOF) { switch (opt) { + case '2': + flags |= IDENTIFY_256COLOURS; + break; case 'f': cfg_file = xstrdup(optarg); break; @@ -193,6 +196,9 @@ main(int argc, char **argv) case 'u': flags |= IDENTIFY_UTF8; break; + case 'd': + flags |= IDENTIFY_HASDEFAULTS; + break; case 'v': debug_level++; break; |