# window_pane_start_input

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

```c
int window_pane_start_input(struct window_pane *wp, struct cmdq_item *item, char **cause)
```

## Parameters

- `wp` (`struct window_pane *`)
- `item` (`struct cmdq_item *`)
- `cause` (`char **`)

## Called by

- [`cmd_display_message_exec`](/en/tmux/latest/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-message.c#L80)
- [`cmd_split_window_exec`](/en/tmux/latest/reference/c-function-cmd-split-window-c-cmd_split_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-split-window.c#L200)

## Calls

- [`cmdq_get_client`](/en/tmux/latest/reference/c-function-cmdq_get_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1819)
- [`file_read`](/en/tmux/latest/reference/c-function-file_read/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1834)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1831)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1823)

## Other function references

- [`window_pane_input_callback`](/en/tmux/latest/reference/c-function-window-c-window_pane_input_callback/) (function)

## Referenced declarations

- [`CLIENT_DEAD`](/en/tmux/latest/reference/c-define-tmux-h-client_dead/) (constant)
- [`CLIENT_EXITED`](/en/tmux/latest/reference/c-define-tmux-h-client_exited/) (constant)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`window_pane_input_data.file`](/en/tmux/latest/reference/c-struct-window_pane_input_data-file/) (attribute)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`window_pane_input_data.item`](/en/tmux/latest/reference/c-struct-window_pane_input_data-item/) (attribute)
- [`PANE_EMPTY`](/en/tmux/latest/reference/c-define-tmux-h-pane_empty/) (constant)
- [`client.references`](/en/tmux/latest/reference/c-struct-client-references/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`window_pane_input_data.wp`](/en/tmux/latest/reference/c-struct-window_pane_input_data-wp/) (attribute)
