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.

MoreLess about this notice

method libtmux-ruby

SessionSnapshot.window_count

Behavior: Captured records.

Source and package
Qualified name
LibTmux::SessionSnapshot#window_count
Module
LibTmux
Declared in
SessionSnapshot
Package
libtmux
Source
gems/libtmux/lib/libtmux/snapshot.rb
def window_count: () -> ::Integer

Description

Behavior contract: Captured records.

Recorded calls

source calls
No call edges in the Ruby model.

The Ruby reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux::SessionSnapshot#window_count.

In other ports

task equivalence 5 other ports mapped

Source-verified mappings for How many windows the session holds. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

How many windows the session holds in each port
PortAPIDiffers from Ruby
Ruby LibTmux::SessionSnapshot#window_count
Behavior: Captured records.
This page
Lua libtmux.SnapshotSession.window_count None recorded in the model
Rust session.Session.window_count
Return how many windows the session contains.
on Session
Go tmux.Session.WindowCount
WindowCount returns tmux #{session_windows} as int from this Session's materialized session-scoped fields.
on Session
C++ libtmux::Session::window_count on Sessionreadonly
Swift Session.windowCount
tmux's own count, so a caller needing only the number does not have to list the windows to get it.
None recorded in the model
No Python equivalent.

no equivalent on Session

No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No TypeScript equivalent.

no equivalent on Session

No Java equivalent.

no equivalent on Session

No C# equivalent.

no equivalent on Session

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

Count Session::window_links membership; repeated links remain distinct occurrences.

No Raku equivalent.

No direct Raku mapping is recorded for this operation; consult the native API reference.

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

Esc
Search in

Type to search.

Reference previewOpen reference