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.name

Return the session name.

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

Description#

Names are byte-preserving: tmux permits bytes that are not valid UTF-8, so this is TmuxText rather than str.

Guides#

Pages that discuss name.

In other ports#

A session's name

Equivalents of A session's name in other languages
Language Equivalent
Python libtmux.Session.name
Ruby LibTmux::SessionSnapshot#name
Lua libtmux.SnapshotSession.name
Elixir LibTmux.Session.name
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript no accessor; the field is read from Session.format, tmux's own row
Go tmux.Session.Name
Java io.github.libtmux.Session.name
C# LibTmux.Session.Name
C++ libtmux::Session::name
Swift Session.name
OCaml Libtmux.Session.name
Perl LibTmux::Session::name Schema-validated captured data; reading performs no tmux I/O.

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

Esc

Type to search.

Reference previewOpen reference