cmd_new_session_exec
Source
- Qualified name
-
cmd_new _session _exec - Source
- cmd-new-session.c
-
tmux command
has-session,new-session
Call neighborhood
source callsDirect 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 callsFollow these functions to explore a task. Arrows show source relationships.
Create a session and its first pane
- cmd_new_session_exec
- calls → spawn_window
- calls → spawn_pane
- calls → window_add_pane
- calls → window_pane_create
Calls
source calls 47Declarations cmd_new_session_exec calls directly.
- args_count function Call site ↗
- args_first_value function Call site ↗
- args_get function Call site ↗
- args_has function Call site ↗
- args_next_value function Call site ↗
- args_to_vector function Call site ↗
- cfg_show_causes function Call site ↗
- check_name function Call site ↗
- clean_name function Call site ↗
- cmd_attach_session function Call site ↗
- cmd_find_from_session function Call site ↗
- cmd_free_argv function Call site ↗
- cmd_get_args function Call site ↗
- cmd_get_entry function Call site ↗
- cmdq_error function Call site ↗
- cmdq_get_client function Call site ↗
- cmdq_get_current function Call site ↗
- cmdq_get_target function Call site ↗
- cmdq_insert_hook function Call site ↗
- cmdq_print function Call site ↗
- environ_create function Call site ↗
- environ_put function Call site ↗
- environ_update function Call site ↗
- fatal function Call site ↗
- format_single function Call site ↗
- notify_session function Call site ↗
- options_create function Call site ↗
- options_get_string function Call site ↗
- options_set_string function Call site ↗
- proc_send function Call site ↗
- server_client_check_nested function Call site ↗
- server_client_open function Call site ↗
- server_client_set_flags function Call site ↗
- server_client_set_key_table function Call site ↗
- server_client_set_session function Call site ↗
- session_create function Call site ↗
- session_destroy function Call site ↗
- session_find function Call site ↗
- session_group_add function Call site ↗
- session_group_contains function Call site ↗
- session_group_find function Call site ↗
- session_group_new function Call site ↗
- session_group_synchronize_to function Call site ↗
- session_select function Call site ↗
- spawn_window function Call site ↗
- strtonum function Call site ↗
- xstrdup function Call site ↗
Other function references
references 3Functions cmd_new_session_exec takes as a pointer or callback. It does not call them.
- cmdq_get_flags function
- options_get_number function
- server_client_get_cwd function
Referenced by
references 2Declarations that take cmd_new_session_exec as a pointer or callback: a reference, not a call.
- cmd_has_session_entry attribute
- cmd_new_session_entry attribute
Referenced declarations
type references 37Types and data cmd_new_session_exec names in its declaration.
- spawn_context.argc attribute
- spawn_context.argv attribute
- cfg_finished attribute
- CLIENT_ATTACHED constant
- CLIENT_CONTROL constant
- cmd struct
- cmd_has_session_entry attribute
- CMD_RETURN_ERROR constant
- CMD_RETURN_NORMAL constant
- cmd_retval enum
- cmdq_item struct
- CMDQ_STATE_REPEAT constant
- cmd_find_state.current attribute
- session.curw attribute
- spawn_context.cwd attribute
- client.environ attribute
- client.fd attribute
- client.flags attribute
- spawn_context.flags attribute
- global_s_options attribute
- spawn_context.idx attribute
- spawn_context.item attribute
- client.last_session attribute
- MSG_READY constant
- session_group.name attribute
- session.name attribute
- spawn_context.name attribute
- NEW_SESSION_TEMPLATE constant
- client.peer attribute
- cmd_find_state.s attribute
- spawn_context.s attribute
- client.session attribute
- tty.sx attribute
- tty.sy attribute
- spawn_context.tc attribute
- client.tty attribute
- session.windows attribute
In libtmux
These methods send has-session.
| Language | Methods |
|---|---|
| Python | Server |
| Go | Server the request sets Pattern |
| C# | Server |
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.
No method in Elixir sends this command itself.