Internal screen data rewrite for better 256 colour/UTF-8 support.

This commit is contained in:
Nicholas Marriott
2008-09-25 20:08:57 +00:00
parent 9edb4d4b85
commit efe557313a
24 changed files with 2474 additions and 2421 deletions

12
tmux.c
View File

@ -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;