Window.refresh
Refresh window attributes from tmux.
Source and package
- Qualified name
-
libtmux.Window .refresh - Module
- libtmux
- Declared in
- Window
- Package
- libtmux
- Source
- src/libtmux/window.py
- Other languages
- PowerShell Julia Ruby Lua TypeScriptRustGoJavaC#C++ Swift Kotlin Scala F#
-
Description#
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.Examples#
>>> window.refresh()>>> window.window_id'@1'- Raises
-
-
Value
Error – Whenwindow_idis unset. Surfaces a clear error underpython -O, where anassertwould be stripped. -
Tmux
Object – When the window no longer exists.Does Not Exist -
Lib
Tmux – When tmux itself is unreachable.Exception
-
In other ports Read a window again
- PowerShell No source-verified PowerShell equivalent is recorded for this operation.
- Julia No source-verified Julia equivalent is recorded for this operation.
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
- Rust
- Go
- Java
- C#
- C++
- Swift reads are snapshots;
Server.snapshot()takes a new one rather than refreshing a handle - Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.