# tty_stop_tty

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

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

## Parameters

- `tty` (`struct tty *`)

## Called by

- [`server_client_suspend`](/en/tmux/3.7c/reference/c-function-server_client_suspend/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L551)
- [`server_lock_client`](/en/tmux/3.7c/reference/c-function-server_lock_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L173)
- [`tty_close`](/en/tmux/3.7c/reference/c-function-tty_close/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L506)

## Calls

- [`setblocking`](/en/tmux/3.7c/reference/c-function-setblocking/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L498)
- [`tty_acs_needed`](/en/tmux/3.7c/reference/c-function-tty_acs_needed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L464)
- [`tty_raw`](/en/tmux/3.7c/reference/c-function-tty_raw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L463)
- [`tty_term_has`](/en/tmux/3.7c/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L470)

## Other function references

- [`tty_term_string`](/en/tmux/3.7c/reference/c-function-tty_term_string/) (function)
- [`tty_term_string_i`](/en/tmux/3.7c/reference/c-function-tty_term_string_i/) (function)
- [`tty_term_string_ii`](/en/tmux/3.7c/reference/c-function-tty_term_string_ii/) (function)

## Referenced declarations

- [`tty.ccolour`](/en/tmux/3.7c/reference/c-struct-tty-ccolour/) (attribute)
- [`tty.client`](/en/tmux/3.7c/reference/c-struct-tty-client/) (attribute)
- [`tty.clipboard_timer`](/en/tmux/3.7c/reference/c-struct-tty-clipboard_timer/) (attribute)
- [`tty.cstyle`](/en/tmux/3.7c/reference/c-struct-tty-cstyle/) (attribute)
- [`tty.event_in`](/en/tmux/3.7c/reference/c-struct-tty-event_in/) (attribute)
- [`tty.event_out`](/en/tmux/3.7c/reference/c-struct-tty-event_out/) (attribute)
- [`client.fd`](/en/tmux/3.7c/reference/c-struct-client-fd/) (attribute)
- [`tty_term.flags`](/en/tmux/3.7c/reference/c-struct-tty_term-flags/) (attribute)
- [`tty.flags`](/en/tmux/3.7c/reference/c-struct-tty-flags/) (attribute)
- [`SCREEN_CURSOR_DEFAULT`](/en/tmux/3.7c/reference/c-enum-screen_cursor_style-screen_cursor_default/) (constant)
- [`tty.start_timer`](/en/tmux/3.7c/reference/c-struct-tty-start_timer/) (attribute)
- [`tty.term`](/en/tmux/3.7c/reference/c-struct-tty-term/) (attribute)
- [`TERM_VT100LIKE`](/en/tmux/3.7c/reference/c-define-tmux-h-term_vt100like/) (constant)
- [`tty.timer`](/en/tmux/3.7c/reference/c-struct-tty-timer/) (attribute)
- [`tty.tio`](/en/tmux/3.7c/reference/c-struct-tty-tio/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`TTY_BLOCK`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_block/) (constant)
- [`TTY_STARTED`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_started/) (constant)
- [`tty_use_margin`](/en/tmux/3.7c/reference/c-define-tty-c-tty_use_margin/) (constant)
- [`TTYC_CLEAR`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_clear/) (constant)
- [`TTYC_CNORM`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_cnorm/) (constant)
- [`TTYC_CR`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_cr/) (constant)
- [`TTYC_CSR`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_csr/) (constant)
- [`TTYC_DSBP`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_dsbp/) (constant)
- [`TTYC_DSEKS`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_dseks/) (constant)
- [`TTYC_DSFCS`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_dsfcs/) (constant)
- [`TTYC_DSMG`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_dsmg/) (constant)
- [`TTYC_KMOUS`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_kmous/) (constant)
- [`TTYC_RMACS`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_rmacs/) (constant)
- [`TTYC_RMCUP`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_rmcup/) (constant)
- [`TTYC_RMKX`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_rmkx/) (constant)
- [`TTYC_SE`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_se/) (constant)
- [`TTYC_SGR0`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_sgr0/) (constant)
- [`TTYC_SS`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_ss/) (constant)
