# input_csi_dispatch

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

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

## Parameters

- `ictx` (`struct input_ctx *`)

## Calls

- [`input_csi_dispatch_rm`](/en/tmux/3.2a/reference/c-function-input-c-input_csi_dispatch_rm/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1567)
- [`input_csi_dispatch_rm_private`](/en/tmux/3.2a/reference/c-function-input-c-input_csi_dispatch_rm_private/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1570)
- [`input_csi_dispatch_sgr`](/en/tmux/3.2a/reference/c-function-input-c-input_csi_dispatch_sgr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1576)
- [`input_csi_dispatch_sm`](/en/tmux/3.2a/reference/c-function-input-c-input_csi_dispatch_sm/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1579)
- [`input_csi_dispatch_sm_private`](/en/tmux/3.2a/reference/c-function-input-c-input_csi_dispatch_sm_private/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1582)
- [`input_csi_dispatch_winops`](/en/tmux/3.2a/reference/c-function-input-c-input_csi_dispatch_winops/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1406)
- [`input_get`](/en/tmux/3.2a/reference/c-function-input-c-input_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1359)
- [`input_print`](/en/tmux/3.2a/reference/c-function-input-c-input_print/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1561)
- [`input_reply`](/en/tmux/3.2a/reference/c-function-input-c-input_reply/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1432)
- [`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#L1564)
- [`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#L1573)
- [`input_split`](/en/tmux/3.2a/reference/c-function-input-c-input_split/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1343)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1340)
- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1393)
- [`screen_set_cursor_style`](/en/tmux/3.2a/reference/c-function-screen_set_cursor_style/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1618)
- [`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#L1416)
- [`screen_write_clearcharacter`](/en/tmux/3.2a/reference/c-function-screen_write_clearcharacter/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1454)
- [`screen_write_clearendofline`](/en/tmux/3.2a/reference/c-function-screen_write_clearendofline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1519)
- [`screen_write_clearendofscreen`](/en/tmux/3.2a/reference/c-function-screen_write_clearendofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1492)
- [`screen_write_clearhistory`](/en/tmux/3.2a/reference/c-function-screen_write_clearhistory/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1506)
- [`screen_write_clearline`](/en/tmux/3.2a/reference/c-function-screen_write_clearline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1525)
- [`screen_write_clearscreen`](/en/tmux/3.2a/reference/c-function-screen_write_clearscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1498)
- [`screen_write_clearstartofline`](/en/tmux/3.2a/reference/c-function-screen_write_clearstartofline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1522)
- [`screen_write_clearstartofscreen`](/en/tmux/3.2a/reference/c-function-screen_write_clearstartofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1495)
- [`screen_write_cursordown`](/en/tmux/3.2a/reference/c-function-screen_write_cursordown/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1377)
- [`screen_write_cursorleft`](/en/tmux/3.2a/reference/c-function-screen_write_cursorleft/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1372)
- [`screen_write_cursormove`](/en/tmux/3.2a/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1388)
- [`screen_write_cursorright`](/en/tmux/3.2a/reference/c-function-screen_write_cursorright/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1382)
- [`screen_write_cursorup`](/en/tmux/3.2a/reference/c-function-screen_write_cursorup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1411)
- [`screen_write_deletecharacter`](/en/tmux/3.2a/reference/c-function-screen_write_deletecharacter/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1459)
- [`screen_write_deleteline`](/en/tmux/3.2a/reference/c-function-screen_write_deleteline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1470)
- [`screen_write_insertcharacter`](/en/tmux/3.2a/reference/c-function-screen_write_insertcharacter/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1540)
- [`screen_write_insertline`](/en/tmux/3.2a/reference/c-function-screen_write_insertline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1545)
- [`screen_write_scrolldown`](/en/tmux/3.2a/reference/c-function-screen_write_scrolldown/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1592)
- [`screen_write_scrollregion`](/en/tmux/3.2a/reference/c-function-screen_write_scrollregion/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1465)
- [`screen_write_scrollup`](/en/tmux/3.2a/reference/c-function-screen_write_scrollup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L1587)

## Other function references

- [`getversion`](/en/tmux/3.2a/reference/c-function-getversion/) (function)
- [`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_csi_enter_table`](/en/tmux/3.2a/reference/c-variable-input-c-input_state_csi_enter_table/) (attribute)
- [`input_state_csi_intermediate_table`](/en/tmux/3.2a/reference/c-variable-input-c-input_state_csi_intermediate_table/) (attribute)
- [`input_state_csi_parameter_table`](/en/tmux/3.2a/reference/c-variable-input-c-input_state_csi_parameter_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)
- [`screen.cy`](/en/tmux/3.2a/reference/c-struct-screen-cy/) (attribute)
- [`input_ctx.flags`](/en/tmux/3.2a/reference/c-struct-input_ctx-flags/) (attribute)
- [`global_options`](/en/tmux/3.2a/reference/c-variable-global_options/) (attribute)
- [`INPUT_CSI_CBT`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_cbt/) (constant)
- [`INPUT_CSI_CNL`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_cnl/) (constant)
- [`INPUT_CSI_CPL`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_cpl/) (constant)
- [`INPUT_CSI_CUB`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_cub/) (constant)
- [`INPUT_CSI_CUD`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_cud/) (constant)
- [`INPUT_CSI_CUF`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_cuf/) (constant)
- [`INPUT_CSI_CUP`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_cup/) (constant)
- [`INPUT_CSI_CUU`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_cuu/) (constant)
- [`INPUT_CSI_DA`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_da/) (constant)
- [`INPUT_CSI_DA_TWO`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_da_two/) (constant)
- [`INPUT_CSI_DCH`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_dch/) (constant)
- [`INPUT_CSI_DECSCUSR`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_decscusr/) (constant)
- [`INPUT_CSI_DECSTBM`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_decstbm/) (constant)
- [`INPUT_CSI_DL`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_dl/) (constant)
- [`INPUT_CSI_DSR`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_dsr/) (constant)
- [`INPUT_CSI_ECH`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_ech/) (constant)
- [`INPUT_CSI_ED`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_ed/) (constant)
- [`INPUT_CSI_EL`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_el/) (constant)
- [`INPUT_CSI_HPA`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_hpa/) (constant)
- [`INPUT_CSI_ICH`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_ich/) (constant)
- [`INPUT_CSI_IL`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_il/) (constant)
- [`INPUT_CSI_MODOFF`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_modoff/) (constant)
- [`INPUT_CSI_MODSET`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_modset/) (constant)
- [`INPUT_CSI_RCP`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_rcp/) (constant)
- [`INPUT_CSI_REP`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_rep/) (constant)
- [`INPUT_CSI_RM`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_rm/) (constant)
- [`INPUT_CSI_RM_PRIVATE`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_rm_private/) (constant)
- [`INPUT_CSI_SCP`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_scp/) (constant)
- [`INPUT_CSI_SD`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_sd/) (constant)
- [`INPUT_CSI_SGR`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_sgr/) (constant)
- [`INPUT_CSI_SM`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_sm/) (constant)
- [`INPUT_CSI_SM_PRIVATE`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_sm_private/) (constant)
- [`INPUT_CSI_SU`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_su/) (constant)
- [`input_csi_table`](/en/tmux/3.2a/reference/c-variable-input-c-input_csi_table/) (attribute)
- [`INPUT_CSI_TBC`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_tbc/) (constant)
- [`INPUT_CSI_VPA`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_vpa/) (constant)
- [`INPUT_CSI_WINOPS`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_winops/) (constant)
- [`INPUT_CSI_XDA`](/en/tmux/3.2a/reference/c-enum-input_csi_type-input_csi_xda/) (constant)
- [`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_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_KEXTENDED`](/en/tmux/3.2a/reference/c-define-tmux-h-mode_kextended/) (constant)
- [`nitems`](/en/tmux/3.2a/reference/c-define-tmux-h-nitems/) (constant)
- [`input_ctx.param_buf`](/en/tmux/3.2a/reference/c-struct-input_ctx-param_buf/) (attribute)
- [`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_size_y`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_y/) (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)
