# tty_set_progress_bar

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

```c
void tty_set_progress_bar(struct tty *tty, struct progress_bar *pb)
```

## Parameters

- `tty` (`struct tty *`)
- `pb` (`struct progress_bar *`)

## Called by

- [`server_client_set_progress_bar`](/en/tmux/latest/reference/c-function-server-client-c-server_client_set_progress_bar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2201)

## Calls

- [`tty_putcode_ii`](/en/tmux/latest/reference/c-function-tty_putcode_ii/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L3132)
- [`tty_term_has`](/en/tmux/latest/reference/c-function-tty_term_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty.c#L3131)

## Referenced declarations

- [`progress_bar.progress`](/en/tmux/latest/reference/c-struct-progress_bar-progress/) (attribute)
- [`progress_bar`](/en/tmux/latest/reference/c-struct-progress_bar/) (struct)
- [`progress_bar.state`](/en/tmux/latest/reference/c-struct-progress_bar-state/) (attribute)
- [`tty.term`](/en/tmux/latest/reference/c-struct-tty-term/) (attribute)
- [`tty`](/en/tmux/latest/reference/c-struct-tty/) (struct)
- [`TTYC_SPB`](/en/tmux/latest/reference/c-enum-tty_code_code-ttyc_spb/) (constant)
