Core LibraryalphaAPI Reference

Choose documentation 1

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

function libtmux-elixir latest

Session.active_window/2

Returns the captured active physical window, or nil when none is active.

Source and package
Qualified name
LibTmux.Session.active_window/2
Module
LibTmux
Declared in
Session
Package
libtmux
Source
lib/libtmux/entities.ex
active_window(snapshot, session) @spec active_window(LibTmux.Snapshot.t(), t()) :: LibTmux.Window.t() | nil

Description#

Multiple active links raise LibTmux.Error , even when they name the same window. Unrelated sessions do not affect this lookup. Identity, coverage and no-I/O behavior follow windows/2 , which includes a worked example.

Parameters

Discussed in Captured tmux state · Filter captured values , Getting started · Observation and filter schema

Esc

Type to search.

Reference preview Open reference