According to man tmux
to check the launch option:
-C: Start in control mode (see the CONTROL MODE section). Given twice (-CC) disables echo.
Then in the control mode section of the man tmux
, there is the following description:
CONTROL MODE
tmux offers a textual interface called control mode. This allows
applications to communicate with tmux using a simple text-only protocol.
In control mode, a client sends tmux commands or command sequences
terminated by newlines on standard input. Each command will produce one
block of output on standard output. An output block consists of a %begin
line followed by the output (which may be empty). The output block ends
with a %end or %error. %begin and matching %end or %error have two
arguments: an integer time (as seconds from epoch) and command number.
For example:
%begin 1363006971 2
0: ksh* (1 panes) [80x24] [layout b25f,80x24,0,0,2] @2 (active)
%end 1363006971 2
The refresh-client -C command may be used to set the size of a client in
control mode.
In control mode, tmux outputs notifications. A notification will never
occur inside an output block.
I'm not sure what it means, but at least as far as I try a few commands and try to see the looks and feels of it via (tmux -CC
), it looks like the same as when I launch via tmux new-session
.
So what is the "control mode" and what makes it different from the normal mode?
EDIT
I found that the session and the window that was launched via the control mode (-CC
) does not react to the keyboard shortcut of the tmux commands, such as window split. So what is the point of using the control mode in the first place?
capture-pane
andsave-buffer
and related commandstmux-yank
, though I have not tried it yet.tmux
session running when you trytmux -C
ortmux -CC
?