# cmd_clear_history_entry

- **Language:** C
- **Kind:** attribute
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-capture-pane.c#L52
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-variable-cmd_clear_history_entry/

tmux command: [`clear-history`](/en/tmux/3.2a/manual/clear-history/)

```c
const struct cmd_entry cmd_clear_history_entry = {
    .name = "clear-history",
    .alias = "clearhist",

    .args = { "t:", 0, 0 },
    .usage = "[-t target-pane]" ,

    .target = { 't', CMD_FIND_PANE, 0 },

    .flags = 0x4 ,
    .exec = cmd_capture_pane_exec
};
```

## Other function references

- [`cmd_capture_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_exec/) (function)

## Referenced by

- [`cmd_capture_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_exec/) (function)

## Referenced declarations

- [`args`](/en/tmux/3.2a/reference/c-struct-args/) (struct)
- [`cmd_entry`](/en/tmux/3.2a/reference/c-struct-cmd_entry/) (struct)
- [`CMD_FIND_PANE`](/en/tmux/3.2a/reference/c-enum-cmd_find_type-cmd_find_pane/) (constant)
