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.

method libtmux-go latest

Session.WindowCount

WindowCount returns tmux #{session_windows} as int from this Session's materialized session-scoped fields.

Source and package
Qualified name
tmux.Session.WindowCount
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
func (s Session) WindowCount() (int, bool)

In other ports#

How many windows the session holds

Equivalents of How many windows the session holds in other languages
Language Equivalent
Python no equivalent on Session
Ruby LibTmux::SessionSnapshot#window_count
Lua libtmux.SnapshotSession.window_count
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no equivalent on Session
Rust session.Session.window_count
Java no equivalent on Session
C# no equivalent on Session
C++ libtmux::Session::window_count
Swift Session.windowCount
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#.

Esc

Type to search.

Reference previewOpen reference