# types.ProgramResult

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/ad09eaef7ffff40f510989ee0695852c44a31576/packages/libtmux/src/types.ts#L663
- **Page:** https://libtmux.org/en/ts/latest/reference/types-programresult/

What [`Server.run`](/en/ts/latest/reference/server-server-run/) reports once the program has ended or been stopped.

## Members

### Other members

- [`lostEnd`](/en/ts/latest/reference/types-programresult-lostend/) (property): Whether `output` may lack its end: tmux removed the pane before reading it, or a SIGKILL to the process group left the end unproven. A run that timed out is read before it ends, so this is false and `timedOut` says why.
- [`lostStart`](/en/ts/latest/reference/types-programresult-loststart/) (property): Whether `output` lacks its start, which scrolled past `historyLimit`.
- [`output`](/en/ts/latest/reference/types-programresult-output/) (property): What the program printed, as its terminal shows it, scrollback included: NUL and other control bytes are dropped and wrapped lines joined. For the bytes as written, use {@link Server.spawn} with `stream: true`.
- [`stderr`](/en/ts/latest/reference/types-programresult-stderr/) (property): What the program wrote to stderr, as written, when `separateStderr` was set.
- [`success`](/en/ts/latest/reference/types-programresult-success/) (property): Whether the program exited with status 0.
- [`timedOut`](/en/ts/latest/reference/types-programresult-timedout/) (property): Whether `timeoutMs` stopped the program; its exit fields are then null.
