WindowRef
Identify one physical window on the daemon generation it was captured from, whichever sessions link it; WindowLinkRef names one session's link. new_window returns one, and a WindowSnapshot carries its own as .ref. Operations check a reference against the running daemon before acting and raise StaleReference or CrossServerReference when it no longer matches.
Source and package
- Qualified name
-
LibTmux. Window Ref - Module
- LibTmux
- Package
- LibTmux
- Source
- src/model.jl
-
Description
WindowRefWhat is on here
A
WindowRefnames the physical window, not where a session places it, so the placement functions take aWindowLinkRef. In Julia the functions sit beside the type rather than on it: each takes aServerfirst, and most also have a method for aControlConnection. They fall into a few groups:- Finding the window
- Creating a window returns its reference, and a captured
WindowSnapshotcarries its own as.ref. To pick one from a snapshot, give the matching function a criterion; it raisesNoMatchErrororMultipleMatchesErrorinstead of choosing for you. - Return a referenceCaptureCriterionMatch exactly oneWindow of a pane or window link, up
- Looking inside a window
- Go down from a captured window to its panes. Listing what a snapshot holds does not contact tmux again.
- Panes of a window, down
- Arranging panes
- A layout is a named layout, an unambiguous alias or a serialized layout. Mirrored layouts need tmux 3.5 or later and JSON layouts tmux 3.8 or later, or the call raises
UnsupportedCapability. Cycling can resize panes, and rotating changes their positions. Resizing takes absolute cell dimensions, at least one, and selects tmux's manual window-size policy. - Set a layoutCycle layoutsRotate panesResize
- Placing in sessions
- One session's placement of a window is a
WindowLinkRef. Linking keeps existing links and unlinking the last one is protected unlessallow_destroy=true. - Link or moveRemove a linkSelect or swap
- Renaming, respawning and removing
- Renaming expands no format text and still follows tmux's name normalization. Respawning restarts the window's original command, or an explicit one, and protects running processes unless
kill_running=true. It reduces the window to one pane, so other pane references become stale. Removing returns theCommandResult. - RenameRespawnRemove
- Options, hooks and formats
- A
WindowRefis a scope for options and hooks. Reading formats at a window selects its active pane, and a control connection can subscribe to one of its format fields. - Read typed fieldsExpand a raw expressionSubscribe
Methods
[source]
- Type parameters
-
-
Bound Lib
Tmux .Entity ID
-
- Parameters
In other ports
task equivalence 22 other ports mappedSource-verified mappings for A tmux window. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from Julia |
|---|---|---|
| Julia | Lib Identify one physical window on the daemon generation it was captured from, whichever sessions link it; WindowLinkRef names one session's link. new_window returns one, and a WindowSnapshot carries its own as .ref. Operations check a reference against the running daemon before acting and raise StaleReference or CrossServerReference when it no longer matches. | This page |
| Python | libtmux tmux(1) Window [window_manual]. | None recorded in the model |
| Ruby | Lib | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| PowerShell | Lib Read contextual windows from a server or session. | 2 overloads This cmdlet reads shared .NET LibTmux.Window placements. Use -Server for all sessions or -Session for one session. |
| Erlang | #tmux | A physical window can have several session memberships. window_link holds the session-relative index and active flag. |
| Elixir | Lib An immutable physical window, independent of session membership and index. | Window is a physical window. WindowLink records its session index and active state. |
| Haskell | Lib Detached physical window, independent of its session and index appearances. | Window is a detached physical window, independent of its session placements. WindowLink records each session, index and window binding, and operations take a generation-bound WindowRef. |
| Common Lisp | libtmux: A physical window shared by zero or more captured links. | window is a physical captured window. window-link preserves each session placement. |
| TypeScript | window One window on one tmux server, as a handle rather than a copy of it. | None recorded in the model |
| Rust | window One tmux window, as reached through one session that links it. | None recorded in the model |
| Go | tmux Window is one materialized (session, index, window) winlink record. It is normally returned by Server.Snapshot, Server.Window, or Window.Refresh. A zero Window is not a usable tmux target. | None recorded in the model |
| Java | io One tmux window at one of its positions, as one capture saw it. | readonly |
| Clojure | libtmux Returns the captured window occurrences in a snapshot or session. | Traverses captured window-placement maps without I/O; the window value is a map with an explicit Java reference for effects. |
| Kotlin | io A tmux window at a specific position in a session. | None recorded in the model |
| Scala | io One captured window placement, opaque over the Java handle. Equality includes its session and index, since a window linked into more than one session has more than one placement. Every operation beyond equality is an extension, generated from the operation catalog or handwritten where the catalog marks it WAIT, STREAM or LIFECYCLE. | 2 overloads |
| C# | Lib Represents an immutable window handle and snapshot. | None recorded in the model |
| F# | Lib Identifies window placements and starts queries confined to one window. | This F# module identifies shared .NET LibTmux.Window placements and builds deferred pane queries. Query.list acquires their results from tmux. |
| C++ | libtmux:: One window, as one listing saw it. | None recorded in the model |
| Swift | Window One tmux window, independent of every session that links it. | None recorded in the model |
| OCaml | Libtmux | A global window can have several session placements. Window_link holds the session, index and current flag. |
| Perl | Lib Captured window entity | Physical window identity. WindowLink owns each session/index placement. |
| Raku | Lib Captured physical window; session-relative indices belong to WindowLink. | A physical window may have multiple WindowLink placements, including distinct indexes in one session. |