# msgtype

- **Language:** C
- **Kind:** enum
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux-protocol.h#L26
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-enum-msgtype/

```c
enum msgtype { MSG_VERSION = 12, MSG_IDENTIFY_FLAGS = 100, MSG_IDENTIFY_TERM, MSG_IDENTIFY_TTYNAME, MSG_IDENTIFY_OLDCWD, MSG_IDENTIFY_STDIN, MSG_IDENTIFY_ENVIRON, MSG_IDENTIFY_DONE, MSG_IDENTIFY_CLIENTPID, MSG_IDENTIFY_CWD, MSG_IDENTIFY_FEATURES, MSG_IDENTIFY_STDOUT, MSG_IDENTIFY_LONGFLAGS, MSG_IDENTIFY_TERMINFO, MSG_COMMAND = 200, MSG_DETACH, MSG_DETACHKILL, MSG_EXIT, MSG_EXITED, MSG_EXITING, MSG_LOCK, MSG_READY, MSG_RESIZE, MSG_SHELL, MSG_SHUTDOWN, MSG_OLDSTDERR, MSG_OLDSTDIN, MSG_OLDSTDOUT, MSG_SUSPEND, MSG_UNLOCK, MSG_WAKEUP, MSG_EXEC, MSG_FLAGS, MSG_READ_OPEN = 300, MSG_READ, MSG_READ_DONE, MSG_WRITE_OPEN, MSG_WRITE, MSG_WRITE_READY, MSG_WRITE_CLOSE, MSG_READ_CANCEL };
```

## Members

### Other members

- [`MSG_COMMAND`](/en/tmux/latest/reference/c-enum-msgtype-msg_command/) (constant)
- [`MSG_DETACH`](/en/tmux/latest/reference/c-enum-msgtype-msg_detach/) (constant)
- [`MSG_DETACHKILL`](/en/tmux/latest/reference/c-enum-msgtype-msg_detachkill/) (constant)
- [`MSG_EXEC`](/en/tmux/latest/reference/c-enum-msgtype-msg_exec/) (constant)
- [`MSG_EXIT`](/en/tmux/latest/reference/c-enum-msgtype-msg_exit/) (constant)
- [`MSG_EXITED`](/en/tmux/latest/reference/c-enum-msgtype-msg_exited/) (constant)
- [`MSG_EXITING`](/en/tmux/latest/reference/c-enum-msgtype-msg_exiting/) (constant)
- [`MSG_FLAGS`](/en/tmux/latest/reference/c-enum-msgtype-msg_flags/) (constant)
- [`MSG_IDENTIFY_CLIENTPID`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_clientpid/) (constant)
- [`MSG_IDENTIFY_CWD`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_cwd/) (constant)
- [`MSG_IDENTIFY_DONE`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_done/) (constant)
- [`MSG_IDENTIFY_ENVIRON`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_environ/) (constant)
- [`MSG_IDENTIFY_FEATURES`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_features/) (constant)
- [`MSG_IDENTIFY_FLAGS`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_flags/) (constant)
- [`MSG_IDENTIFY_LONGFLAGS`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_longflags/) (constant)
- [`MSG_IDENTIFY_OLDCWD`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_oldcwd/) (constant)
- [`MSG_IDENTIFY_STDIN`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_stdin/) (constant)
- [`MSG_IDENTIFY_STDOUT`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_stdout/) (constant)
- [`MSG_IDENTIFY_TERM`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_term/) (constant)
- [`MSG_IDENTIFY_TERMINFO`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_terminfo/) (constant)
- [`MSG_IDENTIFY_TTYNAME`](/en/tmux/latest/reference/c-enum-msgtype-msg_identify_ttyname/) (constant)
- [`MSG_LOCK`](/en/tmux/latest/reference/c-enum-msgtype-msg_lock/) (constant)
- [`MSG_OLDSTDERR`](/en/tmux/latest/reference/c-enum-msgtype-msg_oldstderr/) (constant)
- [`MSG_OLDSTDIN`](/en/tmux/latest/reference/c-enum-msgtype-msg_oldstdin/) (constant)
- [`MSG_OLDSTDOUT`](/en/tmux/latest/reference/c-enum-msgtype-msg_oldstdout/) (constant)
- [`MSG_READ`](/en/tmux/latest/reference/c-enum-msgtype-msg_read/) (constant)
- [`MSG_READ_CANCEL`](/en/tmux/latest/reference/c-enum-msgtype-msg_read_cancel/) (constant)
- [`MSG_READ_DONE`](/en/tmux/latest/reference/c-enum-msgtype-msg_read_done/) (constant)
- [`MSG_READ_OPEN`](/en/tmux/latest/reference/c-enum-msgtype-msg_read_open/) (constant)
- [`MSG_READY`](/en/tmux/latest/reference/c-enum-msgtype-msg_ready/) (constant)
- [`MSG_RESIZE`](/en/tmux/latest/reference/c-enum-msgtype-msg_resize/) (constant)
- [`MSG_SHELL`](/en/tmux/latest/reference/c-enum-msgtype-msg_shell/) (constant)
- [`MSG_SHUTDOWN`](/en/tmux/latest/reference/c-enum-msgtype-msg_shutdown/) (constant)
- [`MSG_SUSPEND`](/en/tmux/latest/reference/c-enum-msgtype-msg_suspend/) (constant)
- [`MSG_UNLOCK`](/en/tmux/latest/reference/c-enum-msgtype-msg_unlock/) (constant)
- [`MSG_VERSION`](/en/tmux/latest/reference/c-enum-msgtype-msg_version/) (constant)
- [`MSG_WAKEUP`](/en/tmux/latest/reference/c-enum-msgtype-msg_wakeup/) (constant)
- [`MSG_WRITE`](/en/tmux/latest/reference/c-enum-msgtype-msg_write/) (constant)
- [`MSG_WRITE_CLOSE`](/en/tmux/latest/reference/c-enum-msgtype-msg_write_close/) (constant)
- [`MSG_WRITE_OPEN`](/en/tmux/latest/reference/c-enum-msgtype-msg_write_open/) (constant)
- [`MSG_WRITE_READY`](/en/tmux/latest/reference/c-enum-msgtype-msg_write_ready/) (constant)
