Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

server.interactive.MenuItem

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server.interactive
Package
libtmux
Source
crates/libtmux/src/server/interactive.rs
struct server.interactive.MenuItem
structoverload [source]
structoverload [source]
struct server.interactive.MenuItem

One line of a Server::display_menu menu.

The three parts were a (String, String, String) triple, which reads the same whichever order they are in and compiles whichever order they are in.

Examples

use libtmux::MenuItem;
server
.display_menu(
None,
"session",
[
MenuItem::new("Detach", "d", "detach-client"),
MenuItem::new("Kill", "k", "kill-session"),
],
)
.await?;

4 declared, 0 inherited

Members

  • new method Show label , and run command when the person presses key .
  • command method The tmux command this line runs.
  • key method The key that chooses this line.
  • label method The text tmux shows.
Esc

Type to search.