Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

Server.GetPromptHistoryAsync

Reads what has been typed at command prompts.

Source and package
Qualified name
LibTmux.Server.GetPromptHistoryAsync
Namespace
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Interaction.cs
async Task<IReadOnlyList<string>> GetPromptHistoryAsync( PromptType? type = null, CancellationToken cancellationToken = default )
Parameters
Returns

One line per remembered entry.

Recorded calls

source calls
No call edges in the C# model.

The C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.GetPromptHistoryAsync.

tmux command

task material

The tmux commands behind GetPromptHistoryAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 5 other ports mapped

Source-verified mappings for Read what has been typed at command prompts. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Read what has been typed at command prompts in each port
PortAPIDiffers from C#
C# LibTmux.Server.GetPromptHistoryAsync
Reads what has been typed at command prompts.
This page
Python libtmux.Server.show_prompt_history
Show prompt history via $ tmux show-prompt-history.
None recorded in the model
Rust server.Server.prompt_history
The entries tmux remembers for one kind of prompt.
None recorded in the model
Go tmux.Server.ShowPromptHistory
ShowPromptHistory returns an owned snapshot of tmux prompt-history lines. It is available on every supported tmux. A tmux command or transport failure is returned rather than answered with no history.
None recorded in the model
Java io.github.libtmux.Prompt.history
What has been typed at the prompt, oldest first.
on Prompt
Raku LibTmux::Model::ClientRef.prompt-history
Return raw prompt-history output, without claiming newline-safe entry framing.
on ClientRef
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No TypeScript equivalent.

no equivalent on Server

No C++ equivalent.

no equivalent on Server

No Swift equivalent.

no equivalent on Server

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

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#.

Esc
Search in

Type to search.

Reference previewOpen reference