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

Go API

Go documentation

View as Markdown

Module
tmux
Declared in
Session
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/session_lifecycle.go
Other languages
PythonRubyLuaTypeScriptRustJava.NETC++Swift
Rename ( ctx : context.Context , name : string ) → (Session, error)
method [source]
method [source]
Rename

Rename changes the receiver session's name and returns a canonical freshly materialized Session . If the command succeeds but refresh fails, it returns the receiver with that error. A transport or context error can be delivery-ambiguous; no rollback is attempted. Invalid names are rejected before execution and match ErrInvalidRequest .

In other ports Rename a session

0 declared, 0 inherited

Esc

Type to search.