# input_set_progress_bar

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

```c
static void input_set_progress_bar(struct input_ctx *ictx, enum progress_bar_state state, int p)
```

## Parameters

- `ictx` (`struct input_ctx *`)
- `state` (`enum progress_bar_state`)
- `p` (`int`)

## Called by

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

## Calls

- [`screen_set_progress_bar`](/en/tmux/latest/reference/c-function-screen_set_progress_bar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2998)
- [`server_redraw_window_borders`](/en/tmux/latest/reference/c-function-server_redraw_window_borders/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L3000)
- [`server_status_window`](/en/tmux/latest/reference/c-function-server_status_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L3001)

## Referenced declarations

- [`input_ctx.ctx`](/en/tmux/latest/reference/c-struct-input_ctx-ctx/) (attribute)
- [`input_ctx`](/en/tmux/latest/reference/c-struct-input_ctx/) (struct)
- [`progress_bar_state`](/en/tmux/latest/reference/c-enum-progress_bar_state/) (enum)
- [`screen_write_ctx.s`](/en/tmux/latest/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`input_ctx.wp`](/en/tmux/latest/reference/c-struct-input_ctx-wp/) (attribute)
