1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Multiplexer passthrough (README ยง3.2). Use `enc=b64` (the default) inside these.
/// Wrap for tmux (`allow-passthrough on`): `ESC P tmux ; <msg with ESC doubled> ESC \`.
/// Wrap for GNU screen: the message split into pieces of at most 768 bytes, each sent
/// as `ESC P <piece> ESC \`.
/// Wrap for whatever the environment says: tmux when `TMUX` is set, screen when `STY`
/// is set, otherwise unchanged.