Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Go API

Go documentation

tmux.Server.SessionByName

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/lookup.go
SessionByName ( ctx : context.Context , name : string ) → (Session, error)
method [source]
method [source]
SessionByName

SessionByName performs a live lookup of the session tmux knows by name and returns a newly materialized record. A name no session holds reports ErrNotFound .

tmux keeps session names unique, so a name identifies one session for as long as it keeps it. A SessionID does not change, which is why the records this package hands back carry one and Server.Session takes one; a name is what a person types and what a workspace file records.

0 declared, 0 inherited

Esc

Type to search.