Session.WindowCount
WindowCount returns tmux #{session_windows} as int from this Session's materialized session-scoped fields.
Source and package
- Qualified name
-
tmux.Session. Window Count - Package
- tmux
- Declared in
Session- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/format_generated.go
- Other languages
- Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python RubyLua TypeScript Rust Java C# C++Swift Kotlin Scala OCaml F# Clojure
In other ports#
How many windows the session holds
| Language | Equivalent |
|---|---|
| Python | no equivalent on Session |
| Ruby | Lib |
| Lua | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on Session |
| Rust | session |
| Java | no equivalent on Session |
| C# | no equivalent on Session |
| C++ | libtmux:: |
| Swift | Session |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | Count Session::window_links membership; repeated links remain distinct occurrences. |
No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.