# input_restore_state

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

```c
static void input_restore_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#L1796)
- [`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#L1412)

## Calls

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

## Other function references

- [`screen_write_mode_clear`](/en/tmux/latest/reference/c-function-screen_write_mode_clear/) (function)
- [`screen_write_mode_set`](/en/tmux/latest/reference/c-function-screen_write_mode_set/) (function)

## 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)
- [`input_ctx`](/en/tmux/latest/reference/c-struct-input_ctx/) (struct)
- [`MODE_ORIGIN`](/en/tmux/latest/reference/c-define-tmux-h-mode_origin/) (constant)
- [`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)
