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 */
75 * Don't forget to bump PROTOCOL_VERSION if any of these change!
79 }; /* followed by packed argv */
81 struct msg_read_open
{
84 }; /* followed by path */
86 struct msg_read_data
{
90 struct msg_read_done
{
95 struct msg_write_open
{
99 }; /* followed by path */
101 struct msg_write_data
{
103 }; /* followed by data */
105 struct msg_write_ready
{
110 struct msg_write_close
{
114 #endif /* TMUX_PROTOCOL_H */