# tty_keys_next

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

```c
int tty_keys_next(struct tty *tty)
```

## Parameters

- `tty` (`struct tty *`)

## Called by

- [`tty_keys_callback`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L855)
- [`tty_read_callback`](/en/tmux/3.2a/reference/c-function-tty-c-tty_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L171)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L667)
- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L789)
- [`server_client_handle_key`](/en/tmux/3.2a/reference/c-function-server_client_handle_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L833)
- [`tty_keys_clipboard`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_clipboard/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L670)
- [`tty_keys_device_attributes`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_device_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L681)
- [`tty_keys_extended_device_attributes`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_extended_device_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L692)
- [`tty_keys_extended_key`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_extended_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L717)
- [`tty_keys_mouse`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L703)
- [`tty_keys_next1`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_next1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L728)
- [`xmalloc`](/en/tmux/3.2a/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty-keys.c#L830)

## Other function references

- [`tty_keys_callback`](/en/tmux/3.2a/reference/c-function-tty-keys-c-tty_keys_callback/) (function)

## Referenced by

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

## Referenced declarations

- [`tty.client`](/en/tmux/3.2a/reference/c-struct-tty-client/) (attribute)
- [`CLIENT_FOCUSED`](/en/tmux/3.2a/reference/c-define-tmux-h-client_focused/) (constant)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`tty.flags`](/en/tmux/3.2a/reference/c-struct-tty-flags/) (attribute)
- [`global_options`](/en/tmux/3.2a/reference/c-variable-global_options/) (attribute)
- [`tty.in`](/en/tmux/3.2a/reference/c-struct-tty-in/) (attribute)
- [`key_event.key`](/en/tmux/3.2a/reference/c-struct-key_event-key/) (attribute)
- [`tty.key_timer`](/en/tmux/3.2a/reference/c-struct-tty-key_timer/) (attribute)
- [`KEYC_BSPACE`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_bspace/) (constant)
- [`KEYC_FOCUS_IN`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_focus_in/) (constant)
- [`KEYC_FOCUS_OUT`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_focus_out/) (constant)
- [`KEYC_IMPLIED_META`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_implied_meta/) (constant)
- [`KEYC_MASK_KEY`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_mask_key/) (constant)
- [`KEYC_MASK_MODIFIERS`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_mask_modifiers/) (constant)
- [`KEYC_META`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_meta/) (constant)
- [`KEYC_MOUSE`](/en/tmux/3.2a/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-keyc_mouse/) (constant)
- [`KEYC_UNKNOWN`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_unknown/) (constant)
- [`key_event.m`](/en/tmux/3.2a/reference/c-struct-key_event-m/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`tty.tio`](/en/tmux/3.2a/reference/c-struct-tty-tio/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
- [`TTY_TIMER`](/en/tmux/3.2a/reference/c-define-tmux-h-tty_timer/) (constant)
