Server.new_window
new_window(session => Session|session_id, name => string?, command => arrayref?, shell_command => string?, cwd => bytes?, environment => hashref?).
Source and package
-
Description#
Create a detached physical window in the selected session and return its captured
LibTmux::Window. command, shell_command, cwd, and environment follow"new_session". The new link uses tmux's next available index. Performs I/O;"Creation" in LibTmux::Xpreserves known effects if subsequent acquisition fails.my $window = $server->new_window(session => $session, name => 'logs', command => ['/bin/cat']);Methods#
tmux command#
The tmux commands behind new_window.
display-message (daemon identity or target preflight) list-clients (after accepted creation) list-panes -a server scope, cmd_list_panes_server (after accepted creation) list-sessions (after accepted creation) list-windows -a server scope, cmd_list_windows_exec (after accepted creation) new-window tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Create a window
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | session |
| Rust | session |
| Go | tmux |
| Java | io |
| Clojure | libtmux |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp or F#.