# input_esc_dispatch

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

```c
static int input_esc_dispatch(struct input_ctx *)
```

## Parameters

- `ictx` (`struct input_ctx *`)

## Calls

- [`colour_palette_clear`](/en/tmux/3.7c/reference/c-function-colour_palette_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1383)
- [`input_reset_cell`](/en/tmux/3.7c/reference/c-function-input-c-input_reset_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1384)
- [`input_restore_state`](/en/tmux/3.7c/reference/c-function-input-c-input_restore_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1412)
- [`input_save_state`](/en/tmux/3.7c/reference/c-function-input-c-input_save_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1409)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1372)
- [`screen_write_alignmenttest`](/en/tmux/3.7c/reference/c-function-screen_write_alignmenttest/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1415)
- [`screen_write_carriagereturn`](/en/tmux/3.7c/reference/c-function-screen_write_carriagereturn/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1392)
- [`screen_write_fullredraw`](/en/tmux/3.7c/reference/c-function-screen_write_fullredraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1386)
- [`screen_write_linefeed`](/en/tmux/3.7c/reference/c-function-screen_write_linefeed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1389)
- [`screen_write_reset`](/en/tmux/3.7c/reference/c-function-screen_write_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1385)
- [`screen_write_reverseindex`](/en/tmux/3.7c/reference/c-function-screen_write_reverseindex/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1400)

## Other function references

- [`input_table_compare`](/en/tmux/3.7c/reference/c-function-input-c-input_table_compare/) (function)
- [`screen_write_mode_clear`](/en/tmux/3.7c/reference/c-function-screen_write_mode_clear/) (function)
- [`screen_write_mode_set`](/en/tmux/3.7c/reference/c-function-screen_write_mode_set/) (function)

## Referenced by

- [`input_state_esc_enter_table`](/en/tmux/3.7c/reference/c-variable-input-c-input_state_esc_enter_table/) (attribute)
- [`input_state_esc_intermediate_table`](/en/tmux/3.7c/reference/c-variable-input-c-input_state_esc_intermediate_table/) (attribute)

## Referenced declarations

- [`grid_cell.bg`](/en/tmux/3.7c/reference/c-struct-grid_cell-bg/) (attribute)
- [`input_cell.cell`](/en/tmux/3.7c/reference/c-struct-input_cell-cell/) (attribute)
- [`input_ctx.cell`](/en/tmux/3.7c/reference/c-struct-input_ctx-cell/) (attribute)
- [`input_ctx.ch`](/en/tmux/3.7c/reference/c-struct-input_ctx-ch/) (attribute)
- [`input_ctx.ctx`](/en/tmux/3.7c/reference/c-struct-input_ctx-ctx/) (attribute)
- [`screen.cx`](/en/tmux/3.7c/reference/c-struct-screen-cx/) (attribute)
- [`input_ctx.flags`](/en/tmux/3.7c/reference/c-struct-input_ctx-flags/) (attribute)
- [`input_cell.g0set`](/en/tmux/3.7c/reference/c-struct-input_cell-g0set/) (attribute)
- [`input_cell.g1set`](/en/tmux/3.7c/reference/c-struct-input_cell-g1set/) (attribute)
- [`input_ctx`](/en/tmux/3.7c/reference/c-struct-input_ctx/) (struct)
- [`INPUT_DISCARD`](/en/tmux/3.7c/reference/c-define-input-c-input_discard/) (constant)
- [`INPUT_ESC_DECALN`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_decaln/) (constant)
- [`INPUT_ESC_DECKPAM`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_deckpam/) (constant)
- [`INPUT_ESC_DECKPNM`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_deckpnm/) (constant)
- [`INPUT_ESC_DECRC`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_decrc/) (constant)
- [`INPUT_ESC_DECSC`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_decsc/) (constant)
- [`INPUT_ESC_HTS`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_hts/) (constant)
- [`INPUT_ESC_IND`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_ind/) (constant)
- [`INPUT_ESC_NEL`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_nel/) (constant)
- [`INPUT_ESC_RI`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_ri/) (constant)
- [`INPUT_ESC_RIS`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_ris/) (constant)
- [`INPUT_ESC_SCSG0_OFF`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_scsg0_off/) (constant)
- [`INPUT_ESC_SCSG0_ON`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_scsg0_on/) (constant)
- [`INPUT_ESC_SCSG1_OFF`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_scsg1_off/) (constant)
- [`INPUT_ESC_SCSG1_ON`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_scsg1_on/) (constant)
- [`INPUT_ESC_ST`](/en/tmux/3.7c/reference/c-enum-input_esc_type-input_esc_st/) (constant)
- [`input_esc_table`](/en/tmux/3.7c/reference/c-variable-input-c-input_esc_table/) (attribute)
- [`INPUT_LAST`](/en/tmux/3.7c/reference/c-define-input-c-input_last/) (constant)
- [`input_ctx.interm_buf`](/en/tmux/3.7c/reference/c-struct-input_ctx-interm_buf/) (attribute)
- [`MODE_KKEYPAD`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_kkeypad/) (constant)
- [`nitems`](/en/tmux/3.7c/reference/c-define-tmux-h-nitems/) (constant)
- [`input_ctx.palette`](/en/tmux/3.7c/reference/c-struct-input_ctx-palette/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_size_x`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen.tabs`](/en/tmux/3.7c/reference/c-struct-screen-tabs/) (attribute)
- [`input_table_entry.type`](/en/tmux/3.7c/reference/c-struct-input_table_entry-type/) (attribute)
