Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

Swift API

property libtmux-swift latest

Server.shellInvocation

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

Source and package
Qualified name
Server.shellInvocation
Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/PaneInteraction.swift
shellInvocation : var shellInvocation: String

Description#

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")
Esc

Type to search.

Reference previewOpen reference