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. Session By Name - Package
- tmux
- Declared in
Server- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/lookup.go
-
Description#
tmux keeps session names unique, so a name identifies one session for as long as it keeps it. A
SessionIDdoes not change, which is why the records this package hands back carry one andServer.Sessiontakes one; a name is what a person types and what a workspace file records.
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.