libtmux.Window.refresh
- Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/window.py
- Other languages
- Ruby Lua TypeScriptRustGoJava.NETC++ Swift
-
Refresh window attributes from tmux.
Scoped to this window's own session (
list-windows -t @ID), so tmux -- not libtmux -- decides which session the window belongs to. SeeWindow.from_window_id.- Raises
-
-
ValueError – When
window_idis unset. Surfaces a clear error underpython -O, where anassertwould be stripped. -
TmuxObjectDoesNotExist – When the window no longer exists.
-
LibTmuxException – When tmux itself is unreachable.
-
In other ports Read a window again
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
window.Window.refreshed - Rust
window.Window.refresh - Go
tmux.Window.Refresh - Java
io.github.libtmux.Window.Window.refresh - .NET
LibTmux.Window.RefreshAsync - C++
libtmux::Window::refresh - Swift reads are snapshots;
Server.snapshot()takes a new one rather than refreshing a handle
Examples
>>> window.refresh()>>> window.window_id'@1'const later = await window.refreshed();later.panes.count();0 declared, 0 inherited