tmuxtmuxC source reference

Choose documentation 1

3.7c

tmux source version

Latest (3.7c) 3.7c 3.2a
English

function tmux

cmd_new_session_exec

Source
Qualified name
cmd_new_session_exec
Source
cmd-new-session.c
static enum cmd_retval cmd_new_session_exec(struct cmd *, struct cmdq_item *)
Parameters

tmux command has-session, new-session

Call neighborhood

source calls

Direct calls this declaration makes and receives, as recorded from the source.

Called by

None recorded. Reached through cmd_has_session_entry and cmd_new_session_entry, which reference it as a function pointer (a reference, not a call).

Direct calls recorded in this source version (tmux e476c12). Callback references appear separately below. Documentation here is sparse: the model has no summary for cmd_new_session_exec.

Paths through the source

source calls

Follow these functions to explore a task. Arrows show source relationships.

Create a session and its first pane

  1. cmd_new_session_exec
  2. calls → spawn_window
  3. calls → spawn_pane
  4. calls → window_add_pane
  5. calls → window_pane_create

Calls

source calls 47

Declarations cmd_new_session_exec calls directly.

Other function references

references 3

Functions cmd_new_session_exec takes as a pointer or callback. It does not call them.

Referenced by

references 2

Declarations that take cmd_new_session_exec as a pointer or callback: a reference, not a call.

Referenced declarations

type references 37

Types and data cmd_new_session_exec names in its declaration.

In libtmux

These methods send has-session.

Library methods that send tmux has-session, by scope
Language Methods
Python Server.has_session
Go Server.HasSession the request sets Pattern
C# Server.HasSessionAsync

No method in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Haskell, Common Lisp, TypeScript, Rust, Java, Clojure, Kotlin, Scala, F#, C++, Swift, OCaml, Perl, or Raku sends this command itself.

These methods send new-session.

Esc

Type to search.

Reference previewOpen reference