libtmux Reference MCP Search

Swift

Swift

Drive a real tmux from Swift.

libtmux-swift

Install

$ .package(url: "https://github.com/libtmux/libtmux-swift", from: "0.1.0")

Quickstart

import LibTmux
let server = try Server(socketName: "default")
for session in try await server.sessions() {
print(session.name, session.windowCount)
}

The README's opening example, with tmux already running on its default socket.

API References

Read on

Esc

Type to search.