# tty

- **Language:** C
- **Kind:** struct
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tmux.h#L1648
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-struct-tty/

```c
struct tty;
```

## Members

### Other members

- [`bg`](/en/tmux/latest/reference/c-struct-tty-bg/) (attribute)
- [`ccolour`](/en/tmux/latest/reference/c-struct-tty-ccolour/) (attribute)
- [`cell`](/en/tmux/latest/reference/c-struct-tty-cell/) (attribute)
- [`client`](/en/tmux/latest/reference/c-struct-tty-client/) (attribute)
- [`clipboard_timer`](/en/tmux/latest/reference/c-struct-tty-clipboard_timer/) (attribute)
- [`cstyle`](/en/tmux/latest/reference/c-struct-tty-cstyle/) (attribute)
- [`cx`](/en/tmux/latest/reference/c-struct-tty-cx/) (attribute)
- [`cy`](/en/tmux/latest/reference/c-struct-tty-cy/) (attribute)
- [`discarded`](/en/tmux/latest/reference/c-struct-tty-discarded/) (attribute)
- [`event_in`](/en/tmux/latest/reference/c-struct-tty-event_in/) (attribute)
- [`event_out`](/en/tmux/latest/reference/c-struct-tty-event_out/) (attribute)
- [`fg`](/en/tmux/latest/reference/c-struct-tty-fg/) (attribute)
- [`flags`](/en/tmux/latest/reference/c-struct-tty-flags/) (attribute)
- [`in`](/en/tmux/latest/reference/c-struct-tty-in/) (attribute)
- [`key_timer`](/en/tmux/latest/reference/c-struct-tty-key_timer/) (attribute)
- [`key_tree`](/en/tmux/latest/reference/c-struct-tty-key_tree/) (attribute)
- [`last_cell`](/en/tmux/latest/reference/c-struct-tty-last_cell/) (attribute)
- [`last_requests`](/en/tmux/latest/reference/c-struct-tty-last_requests/) (attribute)
- [`mode`](/en/tmux/latest/reference/c-struct-tty-mode/) (attribute)
- [`mouse_drag_flag`](/en/tmux/latest/reference/c-struct-tty-mouse_drag_flag/) (attribute)
- [`mouse_drag_release`](/en/tmux/latest/reference/c-struct-tty-mouse_drag_release/) (attribute)
- [`mouse_drag_update`](/en/tmux/latest/reference/c-struct-tty-mouse_drag_update/) (attribute)
- [`mouse_last_b`](/en/tmux/latest/reference/c-struct-tty-mouse_last_b/) (attribute)
- [`mouse_last_pane`](/en/tmux/latest/reference/c-struct-tty-mouse_last_pane/) (attribute)
- [`mouse_last_x`](/en/tmux/latest/reference/c-struct-tty-mouse_last_x/) (attribute)
- [`mouse_last_y`](/en/tmux/latest/reference/c-struct-tty-mouse_last_y/) (attribute)
- [`mouse_scrolling_flag`](/en/tmux/latest/reference/c-struct-tty-mouse_scrolling_flag/) (attribute)
- [`mouse_slider_mpos`](/en/tmux/latest/reference/c-struct-tty-mouse_slider_mpos/) (attribute)
- [`oflag`](/en/tmux/latest/reference/c-struct-tty-oflag/) (attribute)
- [`oox`](/en/tmux/latest/reference/c-struct-tty-oox/) (attribute)
- [`ooy`](/en/tmux/latest/reference/c-struct-tty-ooy/) (attribute)
- [`osx`](/en/tmux/latest/reference/c-struct-tty-osx/) (attribute)
- [`osy`](/en/tmux/latest/reference/c-struct-tty-osy/) (attribute)
- [`out`](/en/tmux/latest/reference/c-struct-tty-out/) (attribute)
- [`r`](/en/tmux/latest/reference/c-struct-tty-r/) (attribute)
- [`rleft`](/en/tmux/latest/reference/c-struct-tty-rleft/) (attribute)
- [`rlower`](/en/tmux/latest/reference/c-struct-tty-rlower/) (attribute)
- [`rright`](/en/tmux/latest/reference/c-struct-tty-rright/) (attribute)
- [`rupper`](/en/tmux/latest/reference/c-struct-tty-rupper/) (attribute)
- [`start_timer`](/en/tmux/latest/reference/c-struct-tty-start_timer/) (attribute)
- [`sx`](/en/tmux/latest/reference/c-struct-tty-sx/) (attribute)
- [`sy`](/en/tmux/latest/reference/c-struct-tty-sy/) (attribute)
- [`term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`timer`](/en/tmux/latest/reference/c-struct-tty-timer/) (attribute)
- [`tio`](/en/tmux/latest/reference/c-struct-tty-tio/) (attribute)
- [`xpixel`](/en/tmux/latest/reference/c-struct-tty-xpixel/) (attribute)
- [`ypixel`](/en/tmux/latest/reference/c-struct-tty-ypixel/) (attribute)

## Referenced by

- [`TTY_BLOCK_START`](/en/tmux/latest/reference/c-define-tty-c-tty_block_start/) (constant)
- [`TTY_BLOCK_STOP`](/en/tmux/latest/reference/c-define-tty-c-tty_block_stop/) (constant)
- [`tty_full_width`](/en/tmux/latest/reference/c-define-tty-c-tty_full_width/) (constant)
- [`tty_use_margin`](/en/tmux/latest/reference/c-define-tty-c-tty_use_margin/) (constant)
