4 * Copyright (c) 2021 Nicholas Marriott <nicholas.marriott@gmail.com>
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
15 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
16 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 #ifndef TMUX_PROTOCOL_H
20 #define TMUX_PROTOCOL_H
22 /* Protocol version. */
23 #define PROTOCOL_VERSION 8
29 MSG_IDENTIFY_FLAGS
= 100,
32 MSG_IDENTIFY_OLDCWD
, /* unused */
36 MSG_IDENTIFY_CLIENTPID
,
38 MSG_IDENTIFY_FEATURES
,
40 MSG_IDENTIFY_LONGFLAGS
,
41 MSG_IDENTIFY_TERMINFO
,
54 MSG_OLDSTDERR
, /* unused */
55 MSG_OLDSTDIN
, /* unused */
56 MSG_OLDSTDOUT
, /* unused */
76 * Don't forget to bump PROTOCOL_VERSION if any of these change!
80 }; /* followed by packed argv */
82 struct msg_read_open
{
85 }; /* followed by path */
87 struct msg_read_data
{
91 struct msg_read_done
{
96 struct msg_read_cancel
{
100 struct msg_write_open
{
104 }; /* followed by path */
106 struct msg_write_data
{
108 }; /* followed by data */
110 struct msg_write_ready
{
115 struct msg_write_close
{
119 #endif /* TMUX_PROTOCOL_H */