Core LibraryalphaAPI 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-cxx latest

Window.session

Source and package
Qualified name
libtmux::Window::session
Namespace
libtmux
Declared in
Window
Package
libtmux-cxx
Source
include/libtmux/entities.hpp
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGoJavaC# Swift KotlinScalaOCamlfunction F# Clojure
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] expected<Session, CommandFailure> session() const;

Guides#

Pages that discuss session.

In other ports#

Find the session containing a window placement

Equivalents of Find the session containing a window placement in other languages
Language Equivalent
Python libtmux.Window.session
Ruby LibTmux::WindowLink#session
Lua libtmux.SnapshotWindowLink.session
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript window.Window.session
Rust window.Window.session
Go tmux.Window.Session
Java io.github.libtmux.Window.session
Kotlin io.github.libtmux.kotlin.Window.session
Scala io.github.libtmux.scaladsl.Window.session
C# LibTmux.Window.Session
Swift a Window has no single parent; Snapshot.sessions(of:) lists every linking session
OCaml Libtmux.Window_link.session The session belongs to a placement. A global Window has no single containing session.
Perl LibTmux::WindowLink::session The session belongs to an explicit WindowLink placement; a physical Window has no arbitrary single session.

No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure or F#.

Esc

Type to search.

Reference previewOpen reference