Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. CONTROL MODE
  2. tmux offers a textual interface called control mode. This allows
  3. applications to communicate with tmux using a simple text-only protocol.
  4.  
  5. In control mode, a client sends tmux commands or command sequences
  6. terminated by newlines on standard input. Each command will produce one
  7. block of output on standard output. An output block consists of a %begin
  8. line followed by the output (which may be empty). The output block ends
  9. with a %end or %error. %begin and matching %end or %error have two
  10. arguments: an integer time (as seconds from epoch) and command number.
  11. For example:
  12.  
  13. %begin 1363006971 2
  14. 0: ksh* (1 panes) [80x24] [layout b25f,80x24,0,0,2] @2 (active)
  15. %end 1363006971 2
  16.  
  17. The refresh-client -C command may be used to set the size of a client in
  18. control mode.
  19.  
  20. In control mode, tmux outputs notifications. A notification will never
  21. occur inside an output block.
  22.  
  23. tmux new -s mysession
  24.  
  25. tmux -C attach -t mysession
  26.  
  27. %layout-change @2 91a8,80x23,0,0[80x11,0,0,5,80x11,0,12,7]
  28. %window-add @3
  29. %window-close @1
  30.  
  31. tmux -C attach
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement