# input_init

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

```c
struct input_ctx * input_init(struct window_pane *wp, struct bufferevent *bev)
```

## Parameters

- `wp` (`struct window_pane *`)
- `bev` (`struct bufferevent *`)

## Called by

- [`popup_display`](/en/tmux/3.2a/reference/c-function-popup_display/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L353)
- [`window_pane_set_event`](/en/tmux/3.2a/reference/c-function-window_pane_set_event/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L981)

## Calls

- [`fatalx`](/en/tmux/3.2a/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L813)
- [`input_reset`](/en/tmux/3.2a/reference/c-function-input_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L817)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L804)

## Other function references

- [`input_timer_callback`](/en/tmux/3.2a/reference/c-function-input-c-input_timer_callback/) (function)
- [`xmalloc`](/en/tmux/3.2a/reference/c-function-xmalloc/) (function)

## Referenced by

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

## Referenced declarations

- [`input_ctx.event`](/en/tmux/3.2a/reference/c-struct-input_ctx-event/) (attribute)
- [`input_ctx.input_buf`](/en/tmux/3.2a/reference/c-struct-input_ctx-input_buf/) (attribute)
- [`INPUT_BUF_START`](/en/tmux/3.2a/reference/c-define-input-c-input_buf_start/) (constant)
- [`input_ctx`](/en/tmux/3.2a/reference/c-struct-input_ctx/) (struct)
- [`input_ctx.input_space`](/en/tmux/3.2a/reference/c-struct-input_ctx-input_space/) (attribute)
- [`input_ctx.since_ground`](/en/tmux/3.2a/reference/c-struct-input_ctx-since_ground/) (attribute)
- [`input_ctx.timer`](/en/tmux/3.2a/reference/c-struct-input_ctx-timer/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
- [`input_ctx.wp`](/en/tmux/3.2a/reference/c-struct-input_ctx-wp/) (attribute)
