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.

struct libtmux-rs latest

MenuItem

One line of a Server::display_menu() menu.

Source and package
Qualified name
libtmux::server::interactive::MenuItem
Module
server.interactive
Package
libtmux
Source
crates/libtmux/src/server/interactive.rs
struct server.interactive.MenuItem

Description#

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?;

Members4#

Common operations1#

Other members3#

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

Reference previewOpen reference