Core LibraryunreleasedAPI reference

Choose documentation 3

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

typealias LibTmux.jl

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.WindowRef
Module
LibTmux
Package
LibTmux
Source
src/model.jl

Description

WindowRef

What is on here

A WindowRef names the physical window, not where a session places it, so the placement functions take a WindowLinkRef. In Julia the functions sit beside the type rather than on it: each takes a Server first, and most also have a method for a ControlConnection. They fall into a few groups:

Finding the window
Creating a window returns its reference, and a captured WindowSnapshot carries its own as .ref. To pick one from a snapshot, give the matching function a criterion; it raises NoMatchError or MultipleMatchesError instead of choosing for you.
Return a reference
Capture
Criterion
Match exactly one
Window 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 layout
Cycle layouts
Rotate panes
Resize
Placing in sessions
One session's placement of a window is a WindowLinkRef. Linking keeps existing links and unlinking the last one is protected unless allow_destroy=true.
Link or move
Remove a link
Select 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 the CommandResult.
Rename
Respawn
Remove
Options, hooks and formats
A WindowRef is 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 fields
Expand a raw expression
Subscribe

Methods

[source]

Type parameters
Parameters

In other ports

task equivalence 22 other ports mapped

Source-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.

A tmux window in each port
PortAPIDiffers from Julia
Julia LibTmux.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.
This page
Python libtmux.Window
tmux(1) Window [window_manual].
None recorded in the model
Ruby LibTmux::Window None recorded in the model
Lua libtmux.Window None recorded in the model
PowerShell LibTmux\Get-TmuxWindow
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_model:window{}
A physical window can have several session memberships. window_link holds the session-relative index and active flag.
Elixir LibTmux.Window
An immutable physical window, independent of session membership and index.
Window is a physical window. WindowLink records its session index and active state.
Haskell LibTmux.Snapshot.Window
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:window
A physical window shared by zero or more captured links.
window is a physical captured window. window-link preserves each session placement.
TypeScript window.Window
One window on one tmux server, as a handle rather than a copy of it.
None recorded in the model
Rust window.Window
One tmux window, as reached through one session that links it.
None recorded in the model
Go tmux.Window
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.github.libtmux.Window
One tmux window at one of its positions, as one capture saw it.
readonly
Clojure libtmux.data/windows
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.github.libtmux.kotlin.Window
A tmux window at a specific position in a session.
None recorded in the model
Scala io.github.libtmux.scaladsl.Window
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# LibTmux.Window
Represents an immutable window handle and snapshot.
None recorded in the model
F# LibTmux.FSharp.Window
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::Window
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.Window.t
A global window can have several session placements. Window_link holds the session, index and current flag.
Perl LibTmux::Window
Captured window entity
Physical window identity. WindowLink owns each session/index placement.
Raku LibTmux::Model::Window
Captured physical window; session-relative indices belong to WindowLink.
A physical window may have multiple WindowLink placements, including distinct indexes in one session.
Esc
Search in

Type to search.

Reference previewOpen reference