# tty_invalidate

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

```c
void tty_invalidate(struct tty *tty)
```

## Parameters

- `tty` (`struct tty *`)

## Called by

- [`tty_cmd_cell`](/en/tmux/latest/reference/c-function-tty_cmd_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2076)
- [`tty_cmd_rawstring`](/en/tmux/latest/reference/c-function-tty_cmd_rawstring/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2167)
- [`tty_keys_winsz`](/en/tmux/latest/reference/c-function-tty-keys-c-tty_keys_winsz/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L733)
- [`tty_resize`](/en/tmux/latest/reference/c-function-tty_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L155)
- [`tty_start_tty`](/en/tmux/latest/reference/c-function-tty_start_tty/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L378)
- [`tty_timer_callback`](/en/tmux/latest/reference/c-function-tty-c-tty_timer_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L206)
- [`tty_update_features`](/en/tmux/latest/reference/c-function-tty_update_features/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L552)

## Calls

- [`tty_cursor`](/en/tmux/latest/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2315)
- [`tty_margin_off`](/en/tmux/latest/reference/c-function-tty_margin_off/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2317)
- [`tty_putcode`](/en/tmux/latest/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2309)
- [`tty_region_off`](/en/tmux/latest/reference/c-function-tty_region_off/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L2316)

## Other function references

- [`tty_update_mode`](/en/tmux/latest/reference/c-function-tty_update_mode/) (function)

## Referenced declarations

- [`ALL_MODES`](/en/tmux/latest/reference/c-define-tmux-h-all_modes/) (constant)
- [`tty.cell`](/en/tmux/latest/reference/c-struct-tty-cell/) (attribute)
- [`tty.cx`](/en/tmux/latest/reference/c-struct-tty-cx/) (attribute)
- [`tty.cy`](/en/tmux/latest/reference/c-struct-tty-cy/) (attribute)
- [`tty.flags`](/en/tmux/latest/reference/c-struct-tty-flags/) (attribute)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`tty.last_cell`](/en/tmux/latest/reference/c-struct-tty-last_cell/) (attribute)
- [`tty.mode`](/en/tmux/latest/reference/c-struct-tty-mode/) (attribute)
- [`MODE_CURSOR`](/en/tmux/latest/reference/c-define-tmux-h-mode_cursor/) (constant)
- [`tty.rleft`](/en/tmux/latest/reference/c-struct-tty-rleft/) (attribute)
- [`tty.rlower`](/en/tmux/latest/reference/c-struct-tty-rlower/) (attribute)
- [`tty.rright`](/en/tmux/latest/reference/c-struct-tty-rright/) (attribute)
- [`tty.rupper`](/en/tmux/latest/reference/c-struct-tty-rupper/) (attribute)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`TTY_STARTED`](/en/tmux/latest/reference/c-define-tmux-h-tty_started/) (constant)
- [`tty_use_margin`](/en/tmux/latest/reference/c-define-tty-c-tty_use_margin/) (constant)
- [`TTYC_ENMG`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_enmg/) (constant)
- [`TTYC_SGR0`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_sgr0/) (constant)
