Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux latest

Window._refresh

Refresh dataclass fields from a single list-* row.

Source and package
Qualified name
libtmux.Window._refresh
Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/neo.py
_refresh ( self, obj_key: str, obj_id: str, list_cmd: ListCmd = "list-panes", list_extra_args: ListExtraArgs = None, ) → None

Inherited from libtmux.neo.Obj

Description#

Used by the public refresh() methods on Pane, Window, Session, and Client. Each subclass guards its identity field (pane_id, window_id, session_id, client_name) against None before delegating here; this base method enforces the same precondition explicitly so the guarantee survives python -O, where an assert would be stripped.

Parameters
Raises
  • ValueError – When obj_id is None. Surfaces a clear error under python -O, matching the contract of the public refresh() methods.

Esc

Type to search.

Reference previewOpen reference