# input_reset

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

```c
void input_reset(struct input_ctx *ictx, int clear)
```

## Parameters

- `ictx` (`struct input_ctx *`)
- `clear` (`int`)

## Called by

- [`cmd_send_keys_exec`](/en/tmux/3.2a/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-send-keys.c#L201)
- [`input_init`](/en/tmux/3.2a/reference/c-function-input_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L817)
- [`input_timer_callback`](/en/tmux/3.2a/reference/c-function-input-c-input_timer_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L745)

## Calls

- [`input_clear`](/en/tmux/3.2a/reference/c-function-input-c-input_clear/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L858)
- [`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#L847)
- [`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#L854)
- [`screen_write_start`](/en/tmux/3.2a/reference/c-function-screen_write_start/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L853)
- [`screen_write_start_pane`](/en/tmux/3.2a/reference/c-function-screen_write_start_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L851)
- [`screen_write_stop`](/en/tmux/3.2a/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L855)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`window_pane.base`](/en/tmux/3.2a/reference/c-struct-window_pane-base/) (attribute)
- [`input_ctx.ctx`](/en/tmux/3.2a/reference/c-struct-input_ctx-ctx/) (attribute)
- [`input_ctx.flags`](/en/tmux/3.2a/reference/c-struct-input_ctx-flags/) (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_state_ground`](/en/tmux/3.2a/reference/c-variable-input-c-input_state_ground/) (attribute)
- [`input_ctx.last`](/en/tmux/3.2a/reference/c-struct-input_ctx-last/) (attribute)
- [`window_pane.modes`](/en/tmux/3.2a/reference/c-struct-window_pane-modes/) (attribute)
- [`input_ctx.state`](/en/tmux/3.2a/reference/c-struct-input_ctx-state/) (attribute)
- [`input_ctx.wp`](/en/tmux/3.2a/reference/c-struct-input_ctx-wp/) (attribute)
