# LibTmux.Control

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Control.hs
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-control/

Observe tmux control notifications from [`withControl`](/en/haskell/latest/reference/libtmux-server-v-withcontrol/).
 Read from the bounded queue in STM. The enclosing Server retains ownership
 of the daemon.

## Members

### Common operations

- [`pollControlEvent`](/en/haskell/latest/reference/libtmux-control-v-pollcontrolevent/) (function): Read an available result without waiting.
- [`readControlEvent`](/en/haskell/latest/reference/libtmux-control-v-readcontrolevent/) (function): Wait for one queued event or the terminal state. Compose this STM action
 with application events or an application deadline.

### Other members

- [`Control`](/en/haskell/latest/reference/libtmux-control-t-control/) (data type)
- [`ControlEnd`](/en/haskell/latest/reference/libtmux-control-t-controlend/) (data type): A terminal result. Pending events are delivered before this result.
- [`ControlError`](/en/haskell/latest/reference/libtmux-control-t-controlerror/) (data type): Opening or retiring the client failed. A cleanup failure can carry a
 :obj:`ControlRecovery <LibTmux.Recovery#t:ControlRecovery>` in its exception context.
- [`ControlEvent`](/en/haskell/latest/reference/libtmux-control-t-controlevent/) (data type): Rename events identify the physical window and carry tmux's serialized
 name. Other notifications and unsolicited text retain their native bytes.
- [`ControlOptions`](/en/haskell/latest/reference/libtmux-control-t-controloptions/) (data type): Set the maximum number of queued events and whether to receive native
 pane output notifications. The default queue holds 32 events.
- [`defaultControlOptions`](/en/haskell/latest/reference/libtmux-control-v-defaultcontroloptions/) (function): Observe structural notifications with a 32-event queue.

## Referenced by

- [`LibTmux`](/en/haskell/latest/reference/libtmux/) (module)
