Window.NewPane
NewPane creates a floating pane in the receiver's exact winlink. Attach makes the new pane active in that session and winlink; it is not a global client-focus guarantee. The returned Pane is freshly materialized in the receiver SessionID and WindowID rather than by canonical ID-only refresh.
Source and package
- Qualified name
-
tmux.Window. New Pane - Package
- tmux
- Declared in
Window- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/pane_create.go
- func (w Window) NewPane( ctx context
.Context , request NewPane , ) (Pane, error)Request -
Description#
If tmux reports a
PaneIDbefore a transport or refresh failure, the partial result includes the receiver SessionID and WindowID. Other failures return zero; creation is not rolled back.- Parameters
tmux command#
The tmux commands behind NewPane.
tmux C API#
The 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.
Split a window
- 1
cmd_split_window_exec - references → 2
spawn_pane - calls → 3
window_add_pane - calls → 4
window_pane_create