On this page
tmux.Window.NewPane
- Module
- tmux
- Declared in
- Window
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/pane_create.go
- NewPane ( ctx : context.Context , request : NewPaneRequest ) (Pane, error)
-
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
Paneis freshly materialized in the receiver SessionID and WindowID rather than by canonical ID-only refresh.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.
0 declared, 0 inherited