# server.PromptKind

- **Module:** server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server.rs#L218
- **Page:** https://libtmux.org/en/rs/latest/reference/server-promptkind/

Which prompt tmux is remembering answers for.

## Example

```rust
use libtmux::PromptKind;

let guard = libtmux::test::TestServer::new().await?;
let version = guard.server().capabilities().await?.tmux_version().clone();

// tmux keeps a separate history per prompt kind, so a command typed at the
// `:` prompt is not offered when searching.
if version.has_behavior(&libtmux::since::PROMPT_HISTORY) {
    assert!(guard.server().prompt_history(PromptKind::Command).await?.is_empty());
    assert!(guard.server().prompt_history(PromptKind::Search).await?.is_empty());
}

guard.shutdown().await?;
```

## Members

- `Command` (constant): The `:` command prompt.
- `Search` (constant): The search prompt in copy mode.
- `Target` (constant): A prompt asking for a target.
- `WindowTarget` (constant): A prompt asking for a window target.
