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

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

Source and package
Qualified name
tmux.Server.SessionByName
Package
tmux
Declared in
Server
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/lookup.go
func (s Server) SessionByName( ctx context.Context, name string, ) (Session, error)

Description#

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.

Parameters

tmux command#

The tmux commands behind SessionByName.

list-sessions run-shell (the Server has no daemon identity)

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference