# LibTmux::Model::ClientRef.prompt-history

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Client.rakumod#L359
- **Inherited from:** LibTmux::Client::ClientTarget
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-clientref-prompt-history/

```
method prompt-history(Str :$type = Str, *%operation --> Blob:D)
```

Return raw prompt-history output, without claiming newline-safe entry framing.

Return raw prompt-history output, without claiming newline-safe entry framing.

## Parameters

- `$type?` (`Str`)
- `%operation`

## tmux command

The tmux commands behind `prompt-history`.

- [`show-prompt-history`](/en/tmux/latest/manual/show-prompt-history/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_show_prompt_history_entry`](/en/tmux/latest/reference/c-variable-cmd_show_prompt_history_entry/) (attribute)
- [`cmd_show_prompt_history_exec`](/en/tmux/latest/reference/c-function-cmd-show-prompt-history-c-cmd_show_prompt_history_exec/) (function)

## In other ports

Read what has been typed at command prompts

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Server.show_prompt_history`](/en/py/latest/reference/libtmux-server-show_prompt_history/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on `Server` |
| Rust | [`server.Server.prompt_history`](/en/rs/latest/reference/server-server-prompt_history/) (method) |
| Go | [`tmux.Server.ShowPromptHistory`](/en/go/latest/reference/tmux-server-showprompthistory/) (method) |
| Java | [`io.github.libtmux.Prompt.history`](/en/java/latest/reference/io-github-libtmux-prompt-prompt-history/) (method) |
| C# | [`LibTmux.Server.GetPromptHistoryAsync`](/en/csharp/latest/reference/libtmux-server-getprompthistoryasync/) (method) |
| C++ | no equivalent on `Server` |
| Swift | no equivalent on `Server` |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
