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

io.github.libtmux.Server.Server.runShellCapturing

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

View as Markdown

Module
io.github.libtmux.Server
Declared in
Server
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Server.java
runShellCapturing ( command : String ) → List<String>
method [source]
method [source]
runShellCapturing

Runs a shell command through tmux and answers with what it printed.

Separate from #runShell because tmux 3.3a and 3.4 run the command and then report nothing, on every attempt. A caller who wants the effect is fine there; a caller who wants the output would silently get none, so this one refuses rather than answering emptily.

tmux expands #(...) in this command before a shell sees it, and shell quoting does not prevent that. Pass any interpolated value through TmuxFormats#literal unless you mean it to be expanded.

Raises

0 declared, 0 inherited

Esc

Type to search.