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

property libtmux-swift

Session.windowCount

tmux's own count, so a caller needing only the number does not have to list the windows to get it.

Source and package
Qualified name
Session.windowCount
Declared in
Session
Package
libtmux-swift
Source
Sources/LibTmux/Session.swift
windowCount : let windowCount: Int

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 Swift
Swift Session.windowCount
tmux's own count, so a caller needing only the number does not have to list the windows to get it.
This page
Ruby LibTmux::SessionSnapshot#window_count
Behavior: Captured records.
None recorded in the model
Lua libtmux.SnapshotSession.window_count None recorded in the model
Rust session.Session.window_count
Return how many windows the session contains.
None recorded in the model
Go tmux.Session.WindowCount
WindowCount returns tmux #{session_windows} as int from this Session's materialized session-scoped fields.
None recorded in the model
C++ libtmux::Session::window_count readonly
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