Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

method libtmux stable

Window.respawn

Respawn the window process via $ tmux respawn-window.

Source and package
Qualified name
libtmux.Window.respawn
Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
Other languages
PowerShell Julia RubyLuaTypeScriptRustGoJavaC# C++ Swift Kotlin Scala F#
respawn ( self, shell: str | None = None, start_directory: StrPath | None = None, environment: dict[str, str] | None = None, kill: bool | None = None, ) → None

Examples#

>>> window = session.new_window(window_name='respawn_test')
>>> window.respawn(kill=True, shell='sh')
Parameters

tmux command respawn-window

In other ports Restart the command in a window's active pane
Esc

Type to search.

Reference preview Open reference