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
Topics
Deep dives into one subject at a time, in Swift: architecture, traversal, options and hooks.
Guides
Task-oriented walkthroughs in Swift — install tmux, then the round trip every real program starts from.
Examples
The same concrete tasks worked through in Swift, with each snippet checked by the port's own tests.
Concepts
The domain model every port shares — the object hierarchy, transports and filtering.