summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index 3f5e6cdf..5d8bbb09 100644
--- a/tmux.c
+++ b/tmux.c
@@ -244,7 +244,7 @@ main(int argc, char **argv)
quiet = flags = 0;
label = path = NULL;
login_shell = (**argv == '-');
- while ((opt = getopt(argc, argv, "28c:df:lL:qS:uUvV")) != -1) {
+ while ((opt = getopt(argc, argv, "28c:Cdf:lL:qS:uUvV")) != -1) {
switch (opt) {
case '2':
flags |= IDENTIFY_256COLOURS;
@@ -259,6 +259,12 @@ main(int argc, char **argv)
xfree(shell_cmd);
shell_cmd = xstrdup(optarg);
break;
+ case 'C':
+ if (flags & IDENTIFY_CONTROL)
+ flags |= IDENTIFY_TERMIOS;
+ else
+ flags |= IDENTIFY_CONTROL;
+ break;
case 'V':
printf("%s %s\n", __progname, VERSION);
exit(0);