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-ts latest

Session.activeWindow

The window tmux marks active in this session.

Source and package
Qualified name
Session.activeWindow
Module
session
Declared in
Session
Package
libtmux
Source
packages/libtmux/src/session.ts
Other languages
PowerShell Julia Elixir Python Ruby Lua RustGoJavaC#C++ Swift Kotlin Scala F#
activeWindow(): Window | undefined

Examples#

session.activeWindow?.name;

Guides#

Pages that discuss activeWindow.

In other ports#

The session's active window

Equivalents of The session's active window in other languages
Language Equivalent
Python libtmux.Session.active_window
Rust session.Session.active_window
Go tmux.Session.ActiveWindow
Java io.github.libtmux.Session.activeWindow
C# LibTmux.Session.ActiveWindow
C++ libtmux::Session::active_window
Swift no accessor; Pane.isActive is a flag on the pane, so the active one is found by filtering a listing

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference