# tty_reset

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

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

## Parameters

- `tty` (`struct tty *`)

## Called by

- [`screen_redraw_pane`](/en/tmux/3.2a/reference/c-function-screen_redraw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L648)
- [`screen_redraw_screen`](/en/tmux/3.2a/reference/c-function-screen_redraw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L630)
- [`server_client_reset_state`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_reset_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1742)
- [`tty_attributes`](/en/tmux/3.2a/reference/c-function-tty_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2295)
- [`tty_colours`](/en/tmux/3.2a/reference/c-function-tty-c-tty_colours/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L2373)

## Calls

- [`grid_cells_equal`](/en/tmux/3.2a/reference/c-function-grid_cells_equal/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1967)
- [`tty_putcode`](/en/tmux/3.2a/reference/c-function-tty_putcode/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1969)

## Other function references

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

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/3.2a/reference/c-struct-grid_cell-attr/) (attribute)
- [`tty.cell`](/en/tmux/3.2a/reference/c-struct-tty-cell/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`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`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`TTYC_RMACS`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_rmacs/) (constant)
- [`TTYC_SGR0`](/en/tmux/3.2a/reference/c-enum-tty_code_code-ttyc_sgr0/) (constant)
