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

Swift API

Swift documentation

Server.shellInvocation

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

View as Markdown

Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/PaneInteraction.swift
shellInvocation : var shellInvocation: String
property [source]
property [source]
shellInvocation

How a command running *inside* a pane spells a tmux that reaches this server.

A bare tmux there is whichever one is on the pane's PATH, which is not necessarily this one — and a client whose protocol version differs from the server's is refused with server exited unexpectedly rather than anything that names the cause. Composing a command with this instead removes both the PATH lookup and the guess about which server $TMUX refers to:

Quoted for a POSIX shell, so a path containing spaces survives being typed into one.

Examples

try await server.run(
"make; \(server.shellInvocation) wait-for -S built",
in: pane
)
try await server.wait(for: "built")

0 declared, 0 inherited

Esc

Type to search.