On this page
libtmux.Window.from_window_id
- Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/window.py
-
Create Window from existing window_id.
tmux's
cmd_findroutes a-ttarget by *sigil*, so an@-id handed tolist-windowsresolves to that window's session and lists it. The rows come back stamped with the session tmux considers canonical for the window -- the most recently active one -- so a window linked into several sessions reports the same parent tmux itself would.Examples
>>> Window.from_window_id(server=window.server, window_id=window.window_id) Window(@1 1:..., Session($1 ...))- Parameters
- Returns
- Raises
-
-
TmuxObjectDoesNotExist – When no such window exists on a reachable server.
-
LibTmuxException – When tmux itself is unreachable.
-
0 declared, 0 inherited