# tty_invalidate

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1977
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-tty-c-tty_invalidate/

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

## Parameters

- `tty` (`struct tty *`)

## Called by

- [`tty_cmd_rawstring`](/en/tmux/3.2a/reference/c-function-tty_cmd_rawstring/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1920)
- [`tty_resize`](/en/tmux/3.2a/reference/c-function-tty_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L138)
- [`tty_start_tty`](/en/tmux/3.2a/reference/c-function-tty_start_tty/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L336)
- [`tty_timer_callback`](/en/tmux/3.2a/reference/c-function-tty-c-tty_timer_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L189)

## Calls

- [`tty_cursor`](/en/tmux/3.2a/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1994)
- [`tty_margin_off`](/en/tmux/3.2a/reference/c-function-tty_margin_off/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1996)
- [`tty_putcode`](/en/tmux/3.2a/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1988)
- [`tty_region_off`](/en/tmux/3.2a/reference/c-function-tty_region_off/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1995)

## Other function references

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

## Referenced declarations

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