# screen_set_progress_bar

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

```c
void screen_set_progress_bar(struct screen *s, enum progress_bar_state pbs, int p)
```

## Parameters

- `s` (`struct screen *`)
- `pbs` (`enum progress_bar_state`)
- `p` (`int`)

## Called by

- [`input_set_progress_bar`](/en/tmux/latest/reference/c-function-input-c-input_set_progress_bar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2998)
- [`screen_reinit`](/en/tmux/latest/reference/c-function-screen_reinit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L136)

## Referenced declarations

- [`progress_bar.progress`](/en/tmux/latest/reference/c-struct-progress_bar-progress/) (attribute)
- [`screen.progress_bar`](/en/tmux/latest/reference/c-struct-screen-progress_bar/) (attribute)
- [`PROGRESS_BAR_INDETERMINATE`](/en/tmux/latest/reference/c-enum-progress_bar_state-progress_bar_indeterminate/) (constant)
- [`progress_bar_state`](/en/tmux/latest/reference/c-enum-progress_bar_state/) (enum)
- [`screen`](/en/tmux/latest/reference/c-struct-screen/) (struct)
- [`progress_bar.state`](/en/tmux/latest/reference/c-struct-progress_bar-state/) (attribute)
