Clear pane scrollback history

misc

// what it does

`clear-history` discards the scrollback buffer for the target pane (the current pane if none is given), freeing that captured output and its memory. Use it to reset a pane's copy-mode history after a noisy build or to drop sensitive output. It clears the saved buffer only, not what's currently visible on screen.

// tmux command

: clear-history

// gotcha

It empties the copy-mode scrollback but does not clear the visible screen — for a clean pane you still need `clear`/Ctrl+L or `send-keys C-l`, and the two do different things (one wipes history, the other repaints the terminal).