Workspace ManagerconceptAPI reference

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

Workspace Manager: API reference

LibTmuxWorkspace.main

Methods

main(arguments; out, err)[source]

Run the installed CLI protocol. Pure commands need no server. load and freeze take at most one of --socket and --socket-name. With neither, the core's Server reads LIBTMUX_SOCKET_PATH, then LIBTMUX_SOCKET, and otherwise leaves the choice to tmux. Only --attach opens an interactive client. Return a documented exit code. The supplied streams remain borrowed and open; their writes must return promptly. The installed launcher separately owns bounded, cancellable stdout/stderr writes.

main(args=ARGS; out=stdout, err=stderr) -> Int

main(; ...)[source]

Run the installed CLI protocol. Pure commands need no server. load and freeze take at most one of --socket and --socket-name. With neither, the core's Server reads LIBTMUX_SOCKET_PATH, then LIBTMUX_SOCKET, and otherwise leaves the choice to tmux. Only --attach opens an interactive client. Return a documented exit code. The supplied streams remain borrowed and open; their writes must return promptly. The installed launcher separately owns bounded, cancellable stdout/stderr writes.

main(args=ARGS; out=stdout, err=stderr) -> Int
Esc
Search in

Type to search.

Reference previewOpen reference