Session.ActiveWindow
ActiveWindow returns this session's sole active winlink from the materialized snapshot. It never queries tmux; use Session.ResolveActiveWindow for live state.
Source and package
- Qualified name
-
tmux.Session. Active Window - Package
- tmux
- Declared in
Session- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/relations.go
- Other languages
- Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScriptRustJavaC#C++ Swift Kotlin Scala OCaml F# Clojure
Guides#
Pages that discuss ActiveWindow.
In other ports#
The session's active window
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | session |
| Rust | session |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | no accessor; Pane.isActive is a flag on the pane, so the active one is found by filtering a listing |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | Select the active captured WindowLink, then resolve its physical window. |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.