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.

MoreLess about this notice

method libtmux-java

Shell.run

Runs a shell command for its effect. Nothing is claimed about what it printed.

Source and package
Qualified name
io.github.libtmux.Shell.run
Package
io.github.libtmux
Declared in
Shell
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Shell.java
Parameters

Recorded calls

source calls
No call edges in the Java model.

The Java reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls io.github.libtmux.Shell.run.

tmux command

task material

The tmux commands behind run.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 8 other ports mapped

Source-verified mappings for Run a shell command through tmux. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Run a shell command through tmux in each port
PortAPIDiffers from Java
Java io.github.libtmux.Shell.run
Runs a shell command for its effect. Nothing is claimed about what it printed.
This page
Python libtmux.Server.run_shell
Execute a shell command via $ tmux run-shell.
on Server
Ruby LibTmux::Server#run
Raw tmux arguments retain tmux's separators and format semantics.
on Server
TypeScript server.Server.runShell
Run a shell command through tmux and return whatever it printed.
on Server
Rust server.Server.run_shell
Run a shell command through tmux and collect its output.
asyncon Server
Go tmux.Server.RunShell
RunShell executes a shell command through tmux and returns an owned stdout slice. Captured foreground shell jobs require tmux 3.5 before execution; older releases deliver that output to no client. A background request returns nil after tmux accepts the job. TargetPane delivers output to that pane on older supported daemons. AsTmuxCommand uses native tmux command semantics rather than promising captured shell-job output. Unsupported optional flags follow UnsupportedPolicy. A completed stderr result is an error; context cancellation can be observed with errors.Is but does not establish that tmux did not start the job.
on Server
C# LibTmux.Server.RunShellAsync
Runs a shell command and reports what it printed.
asyncon Server
C++ libtmux::Server::run_shell
Run a shell command on the machine the server is on.
on Serverreadonly
Raku LibTmux::Server.run-shell
Run literal shell source through tmux. Background acknowledgement is not job completion.
on Server
Background acknowledgement does not establish job completion.
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No Swift equivalent.

Server.run(_:in:) types a command into a pane rather than running it on the host

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

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

Esc
Search in

Type to search.

Reference previewOpen reference