# Libtmux.Output.event

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1048
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-output-event/

```
type event =
  | Data of {
  cursor: cursor ;
  bytes: string } 
  | Gap of {
  after: cursor option ;
  lost_bytes: int option ;
  reason: reason } 
  | End of reason 
```

## Members

### Common operations

- [`End`](/en/ocaml/latest/reference/libtmux-output-event-end/) (constant): Immutable event values. `Gap.after` is the last cursor delivered to the caller. Unknown loss is `None`. A gap ends continuity and is followed by End; recover with a fresh capture and a new subscription. Data preserves bytes, including NUL and invalid UTF-8. It is future observed output, not rendered text or historical reconstruction.

### Other members

- [`Data`](/en/ocaml/latest/reference/libtmux-output-event-data/) (constant)
- [`Gap`](/en/ocaml/latest/reference/libtmux-output-event-gap/) (constant)
