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-dotnet

Window.RespawnAsync

Restarts the command running in this window.

Source and package
Qualified name
LibTmux.Window.RespawnAsync
Namespace
LibTmux
Declared in
Window
Package
LibTmux
Source
src/LibTmux/Window.Lifecycle.cs

Description

tmux refuses to respawn a window that is still running unless the request kills it first, and killing it destroys every pane but one.

Parameters

Recorded calls

source calls
No call edges in the C# model.

The C# 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 LibTmux.Window.RespawnAsync.

tmux command

task material

The tmux commands behind RespawnAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 9 other ports mapped

Source-verified mappings for Restart the command in a window's active pane. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Restart the command in a window's active pane in each port
PortAPIDiffers from C#
C# LibTmux.Window.RespawnAsync
Restarts the command running in this window.
This page
Python libtmux.Window.respawn
Respawn the window process via $ tmux respawn-window.
None recorded in the model
Ruby LibTmux::Window#respawn
Behavior: Entity mutation.
None recorded in the model
Lua libtmux.Window:respawn None recorded in the model
Erlang tmux_window:respawn/2
Respawn a registered physical window across all its session links. tmux keeps the first pane's ID, removes the other panes and rebuilds a single-pane layout. force defaults false: a window with a running pane normally returns command_error. force = true permits closing existing PTYs. Command completion does not establish former-job termination or application readiness. Other panes can already be removed if a later spawn step fails. Respawn also selects this window in tmux's resolved session. For a window linked into several sessions, tmux chooses that context from the physical ID; this facade does not pin selection or environment to a captured membership.
free function
TypeScript window.Window.respawn
Restart the command running in this window's active pane.
None recorded in the model
Rust window.Window.respawn
Restart the window's command in place.
async
Go tmux.Window.Respawn
Respawn restarts the stable window process through the receiver's exact winlink. It does not select the window or promise any client focus. Respawn returns a canonical freshly materialized Window, which may use another linked session for the same WindowID. If the command succeeds but refresh fails, it returns the receiver with that error; earlier failures return zero. Completed stderr produces a redacted CommandError; nonzero exits without stderr are followed by refresh.
None recorded in the model
Java io.github.libtmux.Window.respawn
Kills what is running in this window and starts it again.
None recorded in the model
Raku LibTmux::Model::WindowRef.respawn
Restart the target's process; kill must be explicit when replacing a running process.
on WindowRef
No Haskell equivalent.

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

No C++ equivalent.

no equivalent on Window

No Swift equivalent.

no equivalent on Window

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 PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference