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-rs latest

Session.window_count

Return how many windows the session contains.

Source and package
Qualified name
libtmux::session::Session::window_count
Module
session
Declared in
Session
Package
libtmux
Source
crates/libtmux/src/session.rs
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Python RubyLua TypeScript Go Java C# C++Swift Kotlin Scala OCaml F# Clojure
#[must_use] pub fn window_count(&self) -> u32

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
Go tmux.Session.WindowCount
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