new_session
Source and package
- Qualified name
-
LibTmux. new _session - Module
- LibTmux
- Package
- LibTmux
- Source
- src/operations.jl
- new_session( connection::Lib
Tmux ; name, command, shell.Control Connection _command , start_directory , environment, kwargs..., )new_session( server::LibTmux ; name, command, shell.Server _command , start_directory , environment, kwargs..., ) -
Methods
new_session( connection::Lib
Tmux ; name, command, shell.Control Connection _command , start_directory , environment, kwargs..., )[source]Create a detached session on the connected daemon and return its
SessionRef. Command, directory and environment options follow the subprocess method. Names must be valid UTF-8 without control bytes; tmux's name normalization still applies. The connection pins daemon identity and the prefixed reply verifies that identity. Cancellation after submission may leave a created session; no retry or automatic destruction occurs. The returned session is caller-owned.new_session(connection::ControlConnection; name, kwargs...)new_session( server::Lib
Tmux ; name, command, shell.Server _command , start_directory , environment, kwargs..., )[source]Create a detached session and return its generation-bound
SessionRef.commandis an argv vector;shell_commandexplicitly runs/bin/sh -c. An executable name beginning with-requires./-nameor an absolute path; arguments after the executable may begin with-. Omitting both uses tmux's configured default command. Creation can start a daemon at this endpoint. The returned reference does not own automatic cleanup.environmentis a mapping or pairs of portable names to literal string values, passed at creation without format expansion. Duplicate names are rejected.new_session(server; name, command=nothing, shell_command=nothing,start_directory=nothing, environment=(), timeout=5.0, cancel=nothing, strict=false)Subprocess identity checks are best effort.
strict=truerefuses execution; there is no silent downgrade or replay after uncertain failure. An invalid creation reply raisesCreationResponseErrorwith command evidence.- Parameters
-
-
connection(LibTmux ) for.Control Connection new_session(connection, name, command, shell_command, start_directory, environment, kwargs) -
command=nothing -
shell_command=nothing -
start_directory=nothing -
environment=() -
server(LibTmux ) for.Server new_session(server, name, command, shell_command, start_directory, environment, kwargs)
-
Recorded calls
source callsThe Julia 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.new_session.
tmux command
task materialThe tmux commands behind new_session.
tmux C API
task materialThe C declarations in tmux that implement these commands.
Each path starts at a function a command runs, which is degree 1. The degree counts steps from there along the path, and each step is a call or a reference: degree 2 is reached from that function, degree 3 from the next, and so on.
Create a session and its first pane
- 1
cmd_new_session_exec - calls → 2
spawn_window - calls → 3
spawn_pane - calls → 4
window_add_pane - calls → 5
window_pane_create
Guides
task materialPages that discuss new_session.