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.

method libtmux-java latest

Server.chain

Starts a chain of commands where each one acts on what the last one made.

Source and package
Qualified name
io.github.libtmux.Server.chain
Package
io.github.libtmux
Declared in
Server
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Server.java
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript Rust Go C#C++ Swift Kotlin Scala OCaml F# Clojure

Description#

tmux moves its own current target as a group runs, so a chain needs no round trip to learn the id of a window or pane it just created.

Nested tmux command strings (if-shell, run-shell -C, hooks, brace blocks, source-file) are not checked; do not nest a command this library refuses.

In other ports#

Run several commands in one tmux invocation

Equivalents of Run several commands in one tmux invocation in other languages
Language Equivalent
Python no equivalent on Server
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no equivalent on Server
Rust server.Server.chain
Go no equivalent on Server
C# LibTmux.Server.Chain
C++ libtmux::Server::run_chain
Swift no equivalent on Server
OCaml No direct public OCaml equivalent is recorded for this operation.
Perl batch executes ordered independent requests, not a tmux command list in one invocation; command chaining is deferred.

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference