# status_prompt_add_history

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

```c
static void status_prompt_add_history(const char *, u_int)
```

## Parameters

- `line` (`const char *`)
- `type` (`u_int`)

## Called by

- [`status_prompt_add_typed_history`](/en/tmux/latest/reference/c-function-status-c-status_prompt_add_typed_history/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L101)
- [`status_prompt_key`](/en/tmux/latest/reference/c-function-status_prompt_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1666)

## Calls

- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1799)
- [`xreallocarray`](/en/tmux/latest/reference/c-function-xreallocarray/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1826)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L1831)

## Referenced declarations

- [`global_options`](/en/tmux/latest/reference/c-variable-global_options/) (attribute)
- [`status_prompt_hlist`](/en/tmux/latest/reference/c-variable-status_prompt_hlist/) (attribute)
- [`status_prompt_hsize`](/en/tmux/latest/reference/c-variable-status_prompt_hsize/) (attribute)
