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

server.interactive.MenuItem.new

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

View as Markdown

Module
server.interactive
Declared in
MenuItem
Package
libtmux
Source
crates/libtmux/src/server/interactive.rs
new ( label : impl Into<OsString> , key : impl Into<OsString> , command : impl Into<OsString> ) → Self
method [source]
method [source]
new

Show label , and run command when the person presses key .

key is a tmux key name, or - for a line that cannot be chosen.

Examples

use libtmux::MenuItem;
let item = MenuItem::new("Kill the session", "k", "kill-session");
assert_eq!(item.label(), "Kill the session");

0 declared, 0 inherited

Esc

Type to search.