# input_save_state

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

```c
static void input_save_state(struct input_ctx *ictx)
```

## Parameters

- `ictx` (`struct input_ctx *`)

## Called by

- [`input_csi_dispatch`](/en/tmux/latest/reference/c-function-input-c-input_csi_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1805)
- [`input_esc_dispatch`](/en/tmux/latest/reference/c-function-input-c-input_esc_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1409)

## Referenced declarations

- [`input_ctx.cell`](/en/tmux/latest/reference/c-struct-input_ctx-cell/) (attribute)
- [`input_ctx.ctx`](/en/tmux/latest/reference/c-struct-input_ctx-ctx/) (attribute)
- [`screen.cx`](/en/tmux/latest/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/latest/reference/c-struct-screen-cy/) (attribute)
- [`input_ctx`](/en/tmux/latest/reference/c-struct-input_ctx/) (struct)
- [`screen.mode`](/en/tmux/latest/reference/c-struct-screen-mode/) (attribute)
- [`input_ctx.old_cell`](/en/tmux/latest/reference/c-struct-input_ctx-old_cell/) (attribute)
- [`input_ctx.old_cx`](/en/tmux/latest/reference/c-struct-input_ctx-old_cx/) (attribute)
- [`input_ctx.old_cy`](/en/tmux/latest/reference/c-struct-input_ctx-old_cy/) (attribute)
- [`input_ctx.old_mode`](/en/tmux/latest/reference/c-struct-input_ctx-old_mode/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/latest/reference/c-struct-screen_write_ctx-s/) (attribute)
