mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
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:
8
tmux.c
8
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);
|
||||
|
Reference in New Issue
Block a user