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.window Count - Declared in
Session- Package
- libtmux-swift
- Source
- Sources/LibTmux/Session.swift
- windowCount : let window
Count : Int
In other ports
task equivalence 5 other ports mappedSource-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.
| Port | API | Differs from Swift |
|---|---|---|
| Swift | Session tmux's own count, so a caller needing only the number does not have to list the windows to get it. | This page |
| Ruby | Lib Behavior: Captured records. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| Rust | session Return how many windows the session contains. | None recorded in the model |
| Go | tmux WindowCount returns tmux #{session_windows} as int from this Session's materialized session-scoped fields. | None recorded in the model |
| C++ | libtmux:: | readonly |
no equivalent on Session
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no equivalent on Session
no equivalent on Session
no equivalent on Session
No direct public OCaml equivalent is recorded for this operation.
Count Session::window_links membership; repeated links remain distinct occurrences.
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#.