aboutsummaryrefslogtreecommitdiff
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 ad632be0..9a305c02 100644
--- a/tmux.c
+++ b/tmux.c
@@ -241,7 +241,7 @@ main(int argc, char **argv)
quiet = flags = 0;
label = path = NULL;
login_shell = (**argv == '-');
- while ((opt = getopt(argc, argv, "28c:df:lL:qS:uUv")) != -1) {
+ while ((opt = getopt(argc, argv, "28c:Cdf:lL:qS:uUv")) != -1) {
switch (opt) {
case '2':
flags |= IDENTIFY_256COLOURS;
@@ -256,6 +256,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 'f':
if (cfg_file != NULL)
xfree(cfg_file);