# input_esc_dispatch

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

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

## Parameters

- `ictx` (`struct input_ctx *`)

## Calls

- [`input_reset_cell`](/en/tmux/3.2a/reference/c-function-input-c-input_reset_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1274)
- [`input_restore_state`](/en/tmux/3.2a/reference/c-function-input-c-input_restore_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1301)
- [`input_save_state`](/en/tmux/3.2a/reference/c-function-input-c-input_save_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1298)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1261)
- [`screen_write_alignmenttest`](/en/tmux/3.2a/reference/c-function-screen_write_alignmenttest/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1304)
- [`screen_write_carriagereturn`](/en/tmux/3.2a/reference/c-function-screen_write_carriagereturn/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1281)
- [`screen_write_linefeed`](/en/tmux/3.2a/reference/c-function-screen_write_linefeed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1278)
- [`screen_write_reset`](/en/tmux/3.2a/reference/c-function-screen_write_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1275)
- [`screen_write_reverseindex`](/en/tmux/3.2a/reference/c-function-screen_write_reverseindex/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1289)
- [`window_pane_reset_palette`](/en/tmux/3.2a/reference/c-function-window_pane_reset_palette/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1273)

## Other function references

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

## Referenced by

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

## Referenced declarations

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