mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 15:26:58 +00:00
Internal screen data rewrite for better 256 colour/UTF-8 support.
This commit is contained in:
12
tmux.c
12
tmux.c
@ -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;
|
||||
|
Reference in New Issue
Block a user