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

libtmux::Server::run

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

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux-cxx
Source
include/libtmux/server.hpp
run ( command : const CommandRequest & , timeout : std::optional< std::chrono::milliseconds > = {} , output_limit : std::optional< std::size_t > = {} ) → expected< std::string, CommandFailure >
methodreadonly [source]
methodreadonly [source]
run

Run one command and return its standard output.

The timeout still rides on the call: how long a caller will wait is a property of what they asked for, and listing sessions does not share a deadline with attaching a client. Unset takes the server's ExecutionPolicy , which is thirty seconds rather than forever — a floor, not a guess at what this particular command needs. output_limit bounds how much of tmux's answer this call will hold. Past it the command reports truncated rather than returning a prefix that reads like a complete answer. Unset uses the package default, which is ample for every listing and can be too small for a long scrollback.

0 declared, 0 inherited

Esc

Type to search.