# tmux.CommandResult.ExitCode

- **Module:** tmux.CommandResult
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** attribute
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/command.go#L75
- **Page:** https://libtmux.org/reference/go/tmux-commandresult-exitcode/

ExitCode is tmux's completed process exit code, or -1 when no tmux command ran: this package refused the request, or a transport failed before tmux answered. A negative code is therefore never tmux's opinion of the request, and an error carrying one has a reason of its own.
