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

Rust API

Rust documentation

server.Server.display_popup

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

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/interactive.rs
display_popup ( self , client : Option<&Client> , command : impl Into<OsString> ) → Result<(), Error>
method [source]
method [source]
display_popup

Show a popup over a client, running a command inside it.

This needs a client with a terminal, so it fails on a server nothing is attached to.

Unlike Self::command_prompt and Self::display_menu , this does not wait for a person -- but it does wait for the command. The popup is opened with -E, so it closes when what runs inside it exits, and this returns then. A command that does not end holds the call until the dispatch timeout does.

Errors

Returns Error::ServerMismatch when the client belongs to another server, or an error when no suitable client exists, when tmux refuses the command, and when the dispatch timeout expires before it exits.

0 declared, 0 inherited

Esc

Type to search.