# input_csi_dispatch

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1440
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-input-c-input_csi_dispatch_rm/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1799)
- [`input_csi_dispatch_rm_private`](/en/tmux/3.7c/reference/c-function-input-c-input_csi_dispatch_rm_private/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1802)
- [`input_csi_dispatch_sgr`](/en/tmux/3.7c/reference/c-function-input-c-input_csi_dispatch_sgr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1808)
- [`input_csi_dispatch_sm`](/en/tmux/3.7c/reference/c-function-input-c-input_csi_dispatch_sm/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1811)
- [`input_csi_dispatch_sm_graphics`](/en/tmux/3.7c/reference/c-function-input-c-input_csi_dispatch_sm_graphics/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1817)
- [`input_csi_dispatch_sm_private`](/en/tmux/3.7c/reference/c-function-input-c-input_csi_dispatch_sm_private/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1814)
- [`input_csi_dispatch_winops`](/en/tmux/3.7c/reference/c-function-input-c-input_csi_dispatch_winops/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1536)
- [`input_get`](/en/tmux/3.7c/reference/c-function-input-c-input_get/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1471)
- [`input_reply`](/en/tmux/3.7c/reference/c-function-input-c-input_reply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1563)
- [`input_report_current_theme`](/en/tmux/3.7c/reference/c-function-input-c-input_report_current_theme/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1609)
- [`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#L1796)
- [`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#L1805)
- [`input_split`](/en/tmux/3.7c/reference/c-function-input-c-input_split/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1455)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1452)
- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1512)
- [`screen_set_cursor_style`](/en/tmux/3.7c/reference/c-function-screen_set_cursor_style/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1854)
- [`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#L1546)
- [`screen_write_clearcharacter`](/en/tmux/3.7c/reference/c-function-screen_write_clearcharacter/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1588)
- [`screen_write_clearendofline`](/en/tmux/3.7c/reference/c-function-screen_write_clearendofline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1746)
- [`screen_write_clearendofscreen`](/en/tmux/3.7c/reference/c-function-screen_write_clearendofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1719)
- [`screen_write_clearhistory`](/en/tmux/3.7c/reference/c-function-screen_write_clearhistory/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1733)
- [`screen_write_clearline`](/en/tmux/3.7c/reference/c-function-screen_write_clearline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1752)
- [`screen_write_clearscreen`](/en/tmux/3.7c/reference/c-function-screen_write_clearscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1725)
- [`screen_write_clearstartofline`](/en/tmux/3.7c/reference/c-function-screen_write_clearstartofline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1749)
- [`screen_write_clearstartofscreen`](/en/tmux/3.7c/reference/c-function-screen_write_clearstartofscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1722)
- [`screen_write_collect_add`](/en/tmux/3.7c/reference/c-function-screen_write_collect_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1793)
- [`screen_write_cursordown`](/en/tmux/3.7c/reference/c-function-screen_write_cursordown/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1489)
- [`screen_write_cursorleft`](/en/tmux/3.7c/reference/c-function-screen_write_cursorleft/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1484)
- [`screen_write_cursormove`](/en/tmux/3.7c/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1500)
- [`screen_write_cursorright`](/en/tmux/3.7c/reference/c-function-screen_write_cursorright/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1494)
- [`screen_write_cursorup`](/en/tmux/3.7c/reference/c-function-screen_write_cursorup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1541)
- [`screen_write_deletecharacter`](/en/tmux/3.7c/reference/c-function-screen_write_deletecharacter/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1593)
- [`screen_write_deleteline`](/en/tmux/3.7c/reference/c-function-screen_write_deleteline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1604)
- [`screen_write_insertcharacter`](/en/tmux/3.7c/reference/c-function-screen_write_insertcharacter/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1767)
- [`screen_write_insertline`](/en/tmux/3.7c/reference/c-function-screen_write_insertline/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1772)
- [`screen_write_mode_clear`](/en/tmux/3.7c/reference/c-function-screen_write_mode_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1530)
- [`screen_write_scrolldown`](/en/tmux/3.7c/reference/c-function-screen_write_scrolldown/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1827)
- [`screen_write_scrollregion`](/en/tmux/3.7c/reference/c-function-screen_write_scrollregion/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1599)
- [`screen_write_scrollup`](/en/tmux/3.7c/reference/c-function-screen_write_scrollup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1822)
- [`utf8_copy`](/en/tmux/3.7c/reference/c-function-utf8_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1791)

## Other function references

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

## Referenced by

- [`input_state_csi_enter_table`](/en/tmux/3.7c/reference/c-variable-input-c-input_state_csi_enter_table/) (attribute)
- [`input_state_csi_intermediate_table`](/en/tmux/3.7c/reference/c-variable-input-c-input_state_csi_intermediate_table/) (attribute)
- [`input_state_csi_parameter_table`](/en/tmux/3.7c/reference/c-variable-input-c-input_state_csi_parameter_table/) (attribute)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/3.7c/reference/c-struct-grid_cell-attr/) (attribute)
- [`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)
- [`screen.cstyle`](/en/tmux/3.7c/reference/c-struct-screen-cstyle/) (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)
- [`screen.cy`](/en/tmux/3.7c/reference/c-struct-screen-cy/) (attribute)
- [`grid_cell.data`](/en/tmux/3.7c/reference/c-struct-grid_cell-data/) (attribute)
- [`EXTENDED_KEY_MODES`](/en/tmux/3.7c/reference/c-define-tmux-h-extended_key_modes/) (constant)
- [`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)
- [`global_options`](/en/tmux/3.7c/reference/c-variable-global_options/) (attribute)
- [`global_w_options`](/en/tmux/3.7c/reference/c-variable-global_w_options/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`INPUT_CSI_CBT`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_cbt/) (constant)
- [`INPUT_CSI_CNL`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_cnl/) (constant)
- [`INPUT_CSI_CPL`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_cpl/) (constant)
- [`INPUT_CSI_CUB`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_cub/) (constant)
- [`INPUT_CSI_CUD`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_cud/) (constant)
- [`INPUT_CSI_CUF`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_cuf/) (constant)
- [`INPUT_CSI_CUP`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_cup/) (constant)
- [`INPUT_CSI_CUU`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_cuu/) (constant)
- [`INPUT_CSI_DA`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_da/) (constant)
- [`INPUT_CSI_DA_TWO`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_da_two/) (constant)
- [`INPUT_CSI_DCH`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_dch/) (constant)
- [`INPUT_CSI_DECSCUSR`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_decscusr/) (constant)
- [`INPUT_CSI_DECSTBM`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_decstbm/) (constant)
- [`INPUT_CSI_DL`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_dl/) (constant)
- [`INPUT_CSI_DSR`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_dsr/) (constant)
- [`INPUT_CSI_DSR_PRIVATE`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_dsr_private/) (constant)
- [`INPUT_CSI_ECH`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_ech/) (constant)
- [`INPUT_CSI_ED`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_ed/) (constant)
- [`INPUT_CSI_EL`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_el/) (constant)
- [`INPUT_CSI_HPA`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_hpa/) (constant)
- [`INPUT_CSI_ICH`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_ich/) (constant)
- [`INPUT_CSI_IL`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_il/) (constant)
- [`INPUT_CSI_MODOFF`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_modoff/) (constant)
- [`INPUT_CSI_MODSET`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_modset/) (constant)
- [`INPUT_CSI_QUERY`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_query/) (constant)
- [`INPUT_CSI_QUERY_PRIVATE`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_query_private/) (constant)
- [`INPUT_CSI_RCP`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_rcp/) (constant)
- [`INPUT_CSI_REP`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_rep/) (constant)
- [`INPUT_CSI_RM`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_rm/) (constant)
- [`INPUT_CSI_RM_PRIVATE`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_rm_private/) (constant)
- [`INPUT_CSI_SCP`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_scp/) (constant)
- [`INPUT_CSI_SD`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_sd/) (constant)
- [`INPUT_CSI_SGR`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_sgr/) (constant)
- [`INPUT_CSI_SM`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_sm/) (constant)
- [`INPUT_CSI_SM_GRAPHICS`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_sm_graphics/) (constant)
- [`INPUT_CSI_SM_PRIVATE`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_sm_private/) (constant)
- [`INPUT_CSI_SU`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_su/) (constant)
- [`input_csi_table`](/en/tmux/3.7c/reference/c-variable-input-c-input_csi_table/) (attribute)
- [`INPUT_CSI_TBC`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_tbc/) (constant)
- [`INPUT_CSI_VPA`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_vpa/) (constant)
- [`INPUT_CSI_WINOPS`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_winops/) (constant)
- [`INPUT_CSI_XDA`](/en/tmux/3.7c/reference/c-enum-input_csi_type-input_csi_xda/) (constant)
- [`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_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)
- [`input_ctx.last`](/en/tmux/3.7c/reference/c-struct-input_ctx-last/) (attribute)
- [`screen.mode`](/en/tmux/3.7c/reference/c-struct-screen-mode/) (attribute)
- [`MODE_BRACKETPASTE`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_bracketpaste/) (constant)
- [`MODE_CURSOR`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_cursor/) (constant)
- [`MODE_CURSOR_BLINKING`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_cursor_blinking/) (constant)
- [`MODE_CURSOR_BLINKING_SET`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_cursor_blinking_set/) (constant)
- [`MODE_FOCUSON`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_focuson/) (constant)
- [`MODE_INSERT`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_insert/) (constant)
- [`MODE_KCURSOR`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_kcursor/) (constant)
- [`MODE_KEYS_EXTENDED`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_keys_extended/) (constant)
- [`MODE_KEYS_EXTENDED_2`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_keys_extended_2/) (constant)
- [`MODE_MOUSE_ALL`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_mouse_all/) (constant)
- [`MODE_MOUSE_BUTTON`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_mouse_button/) (constant)
- [`MODE_MOUSE_SGR`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_mouse_sgr/) (constant)
- [`MODE_MOUSE_STANDARD`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_mouse_standard/) (constant)
- [`MODE_MOUSE_UTF8`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_mouse_utf8/) (constant)
- [`MODE_ORIGIN`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_origin/) (constant)
- [`MODE_SYNC`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_sync/) (constant)
- [`MODE_THEME_UPDATES`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_theme_updates/) (constant)
- [`MODE_WRAP`](/en/tmux/3.7c/reference/c-define-tmux-h-mode_wrap/) (constant)
- [`nitems`](/en/tmux/3.7c/reference/c-define-tmux-h-nitems/) (constant)
- [`window_pane.options`](/en/tmux/3.7c/reference/c-struct-window_pane-options/) (attribute)
- [`input_ctx.param_buf`](/en/tmux/3.7c/reference/c-struct-input_ctx-param_buf/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`SCREEN_CURSOR_DEFAULT`](/en/tmux/3.7c/reference/c-enum-screen_cursor_style-screen_cursor_default/) (constant)
- [`SCREEN_IS_ALTERNATE`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_is_alternate/) (constant)
- [`screen_size_x`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_size_y`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`input_cell.set`](/en/tmux/3.7c/reference/c-struct-input_cell-set/) (attribute)
- [`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)
- [`input_ctx.wp`](/en/tmux/3.7c/reference/c-struct-input_ctx-wp/) (attribute)
