Window.RespawnAsync
Restarts the command running in this window.
Source and package
- Qualified name
-
LibTmux .Window. Respawn Async - Namespace
- LibTmux
- Declared in
Window- Package
- LibTmux
- Source
- src/LibTmux/Window.Lifecycle.cs
- Task RespawnAsync( Respawn
Request ? request = null, CancellationToken cancellationToken = default ) -
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
-
-
request(RespawnRequest ?) – What to respawn, or null to reuse the original.Default
null -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
-
Recorded calls
source callsThe 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 materialThe tmux commands behind RespawnAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 9 other ports mappedSource-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.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Restarts the command running in this window. | This page |
| Python | libtmux Respawn the window process via $ tmux respawn-window. | None recorded in the model |
| Ruby | Lib Behavior: Entity mutation. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| Erlang | tmux 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 Restart the command running in this window's active pane. | None recorded in the model |
| Rust | window Restart the window's command in place. | async |
| Go | tmux 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 Kills what is running in this window and starts it again. | None recorded in the model |
| Raku | Lib Restart the target's process; kill must be explicit when replacing a running process. | on WindowRef |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no equivalent on Window
no equivalent on Window
No direct public OCaml equivalent is recorded for this operation.
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#.