# tmux.Server.ShowPromptHistory

- **Module:** tmux.Server
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/prompt_history.go#L39
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-server-showprompthistory/

```
tmux.Server.ShowPromptHistory(ctx: context.Context, request: PromptHistoryRequest) -> ([]string, error)
```

ShowPromptHistory returns an owned snapshot of tmux prompt-history lines. It requires tmux 3.3 or later and returns [VersionTooLowError] below that floor. A tmux command or transport failure is returned rather than answered with no history.
