# input_add_request

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

```c
static int input_add_request(struct input_ctx *, enum input_request_type, int)
```

## Parameters

- `ictx` (`struct input_ctx *`)
- `input_request_type` (`enum`)
- `idx` (`int`)

## Called by

- [`input_osc_4`](/en/tmux/3.7c/reference/c-function-input-c-input_osc_4/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2933)
- [`input_osc_52_reply`](/en/tmux/3.7c/reference/c-function-input-c-input_osc_52_reply/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L3216)

## Calls

- [`input_make_request`](/en/tmux/3.7c/reference/c-function-input-c-input_make_request/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L3465)
- [`tty_putcode_ss`](/en/tmux/3.7c/reference/c-function-tty_putcode_ss/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L3477)
- [`tty_puts`](/en/tmux/3.7c/reference/c-function-tty_puts/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L3474)
- [`xsnprintf`](/en/tmux/3.7c/reference/c-function-xsnprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L3473)

## Other function references

- [`session_has`](/en/tmux/3.7c/reference/c-function-session_has/) (function)

## Referenced declarations

- [`client.activity_time`](/en/tmux/3.7c/reference/c-struct-client-activity_time/) (attribute)
- [`input_request.c`](/en/tmux/3.7c/reference/c-struct-input_request-c/) (attribute)
- [`input_request.centry`](/en/tmux/3.7c/reference/c-struct-input_request-centry/) (attribute)
- [`CLIENT_UNATTACHEDFLAGS`](/en/tmux/3.7c/reference/c-define-tmux-h-client_unattachedflags/) (constant)
- [`input_request.end`](/en/tmux/3.7c/reference/c-struct-input_request-end/) (attribute)
- [`input_request.entry`](/en/tmux/3.7c/reference/c-struct-input_request-entry/) (attribute)
- [`input_request.ictx`](/en/tmux/3.7c/reference/c-struct-input_request-ictx/) (attribute)
- [`window_pane.ictx`](/en/tmux/3.7c/reference/c-struct-window_pane-ictx/) (attribute)
- [`input_request.idx`](/en/tmux/3.7c/reference/c-struct-input_request-idx/) (attribute)
- [`input_ctx`](/en/tmux/3.7c/reference/c-struct-input_ctx/) (struct)
- [`input_ctx.input_end`](/en/tmux/3.7c/reference/c-struct-input_ctx-input_end/) (attribute)
- [`INPUT_REQUEST_CLIPBOARD`](/en/tmux/3.7c/reference/c-enum-input_request_type-input_request_clipboard/) (constant)
- [`INPUT_REQUEST_PALETTE`](/en/tmux/3.7c/reference/c-enum-input_request_type-input_request_palette/) (constant)
- [`INPUT_REQUEST_QUEUE`](/en/tmux/3.7c/reference/c-enum-input_request_type-input_request_queue/) (constant)
- [`input_request_type`](/en/tmux/3.7c/reference/c-enum-input_request_type/) (enum)
- [`client.input_requests`](/en/tmux/3.7c/reference/c-struct-client-input_requests/) (attribute)
- [`timercmp`](/en/tmux/3.7c/reference/c-define-compat-h-timercmp/) (constant)
- [`client.tty`](/en/tmux/3.7c/reference/c-struct-client-tty/) (attribute)
- [`TTY_STARTED`](/en/tmux/3.7c/reference/c-define-tmux-h-tty_started/) (constant)
- [`TTYC_MS`](/en/tmux/3.7c/reference/c-enum-tty_code_code-ttyc_ms/) (constant)
- [`input_request.type`](/en/tmux/3.7c/reference/c-struct-input_request-type/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`input_ctx.wp`](/en/tmux/3.7c/reference/c-struct-input_ctx-wp/) (attribute)
