Server.window_by_id
Find the window with this id, preferring an active link then the lowest index.
Source and package
- Qualified name
-
libtmux::server:: Server:: window _by _id - Module
- server
- Declared in
Server- Package
- libtmux
- Source
- crates/libtmux/src/server/discovery.rs
- Other languages
- Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby Lua TypeScript Go Java C#C++ Swift Kotlin Scala OCamlfunction F# Clojure
-
Description#
A window linked into several sessions is returned once. Use
Server::windows()when the link matters.Errors
Returns an error when the window listing fails.
In other ports#
Look one window up by target
| Language | Equivalent |
|---|---|
| Python | no equivalent on Server |
| Ruby | Lib |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on Server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | Lib |
| C++ | libtmux:: |
| Swift | no equivalent on Server |
| OCaml | Libtmux Exact opaque-ID lookup in an existing snapshot, without I/O. |
| Perl | Lib 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#.