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

Server.Window

Window performs a canonical live lookup of id using tmux's canonical session and returns a newly materialized record. It does not preserve a linked-session view; use Window.ResolveSession for that exact relationship.

Source and package
Qualified name
tmux.Server.Window
Package
tmux
Declared in
Server
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/lookup.go
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript Rust Java C#C++ Swift Kotlin Scala OCamlfunction F# Clojure
Parameters

tmux command#

The tmux commands behind Window.

list-windows -t session scope, cmd_list_windows_exec run-shell (the Server has no daemon identity)

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Look one window up by target

Equivalents of Look one window up by target in other languages
Language Equivalent
Python no equivalent on Server
Ruby LibTmux::Server#window
Erlang tmux_window:get/2
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no equivalent on Server
Rust server.Server.window_by_id
Java no equivalent on Server
C# LibTmux.Server.GetWindowAsync
C++ libtmux::Server::window
Swift no equivalent on Server
OCaml Libtmux.Snapshot.find_window Exact opaque-ID lookup in an existing snapshot, without I/O.
Perl LibTmux::Snapshot::window_by_id Resolves physical identity without choosing an arbitrary session placement.

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

Esc

Type to search.

Reference previewOpen reference