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.

MoreLess about this notice

method libtmux-dotnet

Session.RenameAsync

Renames this session.

Source and package
Qualified name
LibTmux.Session.RenameAsync
Namespace
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.Lifecycle.cs

Description

tmux expands the name as a format, so a # in it does not survive verbatim.

Parameters
Returns

A replacement handle carrying the new name.

Recorded calls

source calls
No call edges in the C# model.

The C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Session.RenameAsync.

tmux command

task material

The tmux commands behind RenameAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 13 other ports mapped

Source-verified mappings for Rename a session. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

Rename a session in each port
PortAPIDiffers from C#
C# LibTmux.Session.RenameAsync
Renames this session.
This page
Python libtmux.Session.rename_session
Rename session and return new Session object.
None recorded in the model
Ruby LibTmux::Session#rename
Behavior: Entity mutation.
None recorded in the model
Lua libtmux.Session:rename None recorded in the model
Erlang tmux_session:rename/2
Rename the registered session using a literal name and return the command result. Performs I/O. Previously captured records keep their old names; detached or stale references fail validation before the action.
free function
TypeScript session.Session.rename
Rename this session.
None recorded in the model
Rust session.Session.rename
Rename the session and update this handle.
None recorded in the model
Go tmux.Session.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.
None recorded in the model
Java io.github.libtmux.Session.rename
Renames this session and returns its replacement capture.
None recorded in the model
C++ libtmux::Session::rename readonly
Swift Server.rename(_:to:) on Server2 overloads
OCaml Libtmux_unix.Client.rename_session
Set the session name, rejecting a conflicting existing name. Bound IDs remain usable; existing snapshots retain their captured names.
free function
Perl LibTmux::Server::rename_session
rename_session(session => Session|session_id, name => string).
on Server
Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes.
Raku LibTmux::Model::SessionRef.rename
Store the exact name; refuse characters or separators the daemon would change.
on SessionRef
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

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

Esc
Search in

Type to search.

Reference previewOpen reference