Add a skeleton mode to tmux (called "control mode") that let's tmux

commands be sent and output received on stdout. This can be used to
integrate with other terminal emulators and should allow some other
things to be made simpler later. More to come so doesn't do much yet and
deliberately not documented.
This commit is contained in:
Nicholas Marriott
2012-06-18 13:16:42 +00:00
parent 7c39850d1f
commit 2942eca895
8 changed files with 191 additions and 5 deletions

8
tmux.c
View File

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