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
- @Operation(Kind
.CAPTURED ) public CommandChain chain() -
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
| 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 |
| Go | no equivalent on Server |
| C# | Lib |
| C++ | libtmux:: |
| 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#.