# tty_keys_next

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L747
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-tty-keys-c-tty_keys_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1054)
- [`tty_read_callback`](/en/tmux/3.7c/reference/c-function-tty-c-tty_read_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L188)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L764)
- [`notify_client`](/en/tmux/3.7c/reference/c-function-notify_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1010)
- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L970)
- [`server_client_handle_key`](/en/tmux/3.7c/reference/c-function-server_client_handle_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1027)
- [`session_theme_changed`](/en/tmux/3.7c/reference/c-function-session_theme_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L814)
- [`tty_keys_clipboard`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_clipboard/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L767)
- [`tty_keys_colours`](/en/tmux/3.7c/reference/c-function-tty_keys_colours/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L811)
- [`tty_keys_device_attributes`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_device_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L778)
- [`tty_keys_device_attributes2`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_device_attributes2/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L789)
- [`tty_keys_extended_device_attributes`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_extended_device_attributes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L800)
- [`tty_keys_extended_key`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_extended_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L849)
- [`tty_keys_mouse`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L835)
- [`tty_keys_next1`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_next1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L871)
- [`tty_keys_palette`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_palette/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L824)
- [`tty_keys_winsz`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_winsz/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L859)
- [`window_update_focus`](/en/tmux/3.7c/reference/c-function-window_update_focus/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1009)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1019)
- [`xmalloc`](/en/tmux/3.7c/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1023)

## Other function references

- [`tty_keys_callback`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_callback/) (function)
- [`tty_keys_partial_paste_end`](/en/tmux/3.7c/reference/c-function-tty-keys-c-tty_keys_partial_paste_end/) (function)

## Referenced declarations

- [`tty.bg`](/en/tmux/3.7c/reference/c-struct-tty-bg/) (attribute)
- [`key_event.buf`](/en/tmux/3.7c/reference/c-struct-key_event-buf/) (attribute)
- [`C0_CR`](/en/tmux/3.7c/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-c0_cr/) (constant)
- [`C0_ESC`](/en/tmux/3.7c/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-c0_esc/) (constant)
- [`C0_HT`](/en/tmux/3.7c/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-c0_ht/) (constant)
- [`C0_NUL`](/en/tmux/3.7c/reference/c-enum-tmux-h-241271275060253221275056143052225065321046366375-c0_nul/) (constant)
- [`tty.client`](/en/tmux/3.7c/reference/c-struct-tty-client/) (attribute)
- [`CLIENT_FOCUSED`](/en/tmux/3.7c/reference/c-define-tmux-h-client_focused/) (constant)
- [`session.curw`](/en/tmux/3.7c/reference/c-struct-session-curw/) (attribute)
- [`tty.fg`](/en/tmux/3.7c/reference/c-struct-tty-fg/) (attribute)
- [`client.flags`](/en/tmux/3.7c/reference/c-struct-client-flags/) (attribute)
- [`tty.flags`](/en/tmux/3.7c/reference/c-struct-tty-flags/) (attribute)
- [`global_options`](/en/tmux/3.7c/reference/c-variable-global_options/) (attribute)
- [`tty.in`](/en/tmux/3.7c/reference/c-struct-tty-in/) (attribute)
- [`client.input_requests`](/en/tmux/3.7c/reference/c-struct-client-input_requests/) (attribute)
- [`key_event.key`](/en/tmux/3.7c/reference/c-struct-key_event-key/) (attribute)
- [`tty.key_timer`](/en/tmux/3.7c/reference/c-struct-tty-key_timer/) (attribute)
- [`KEYC_BSPACE`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_bspace/) (constant)
- [`KEYC_CTRL`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_ctrl/) (constant)
- [`KEYC_FOCUS_IN`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_focus_in/) (constant)
- [`KEYC_FOCUS_OUT`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_focus_out/) (constant)
- [`KEYC_IMPLIED_META`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_implied_meta/) (constant)
- [`KEYC_MASK_KEY`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_mask_key/) (constant)
- [`KEYC_META`](/en/tmux/3.7c/reference/c-define-tmux-h-keyc_meta/) (constant)
- [`KEYC_MOUSE`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_mouse/) (constant)
- [`KEYC_UNKNOWN`](/en/tmux/3.7c/reference/c-enum-tmux-h-332237342172367247102064023371112372044056265234-keyc_unknown/) (constant)
- [`key_event.len`](/en/tmux/3.7c/reference/c-struct-key_event-len/) (attribute)
- [`key_event.m`](/en/tmux/3.7c/reference/c-struct-key_event-m/) (attribute)
- [`client.name`](/en/tmux/3.7c/reference/c-struct-client-name/) (attribute)
- [`client.session`](/en/tmux/3.7c/reference/c-struct-client-session/) (attribute)
- [`tty.tio`](/en/tmux/3.7c/reference/c-struct-tty-tio/) (attribute)
- [`tty`](/en/tmux/3.7c/reference/c-struct-tty/) (struct)
- [`TTY_ALL_REQUEST_FLAGS`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_all_request_flags/) (constant)
- [`TTY_BRACKETPASTE`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_bracketpaste/) (constant)
- [`TTY_TIMER`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_timer/) (constant)
- [`TTY_WAITBG`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_waitbg/) (constant)
- [`TTY_WAITFG`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_waitfg/) (constant)
- [`winlink.window`](/en/tmux/3.7c/reference/c-struct-winlink-window/) (attribute)
