On this page
tmux.Plan.SplitPane
- Module
- tmux
- Declared in
- Plan
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/plan_pane.go
- SplitPane ( target : Ref , request : SplitPaneRequest ) Ref
-
SplitPane records a split of the window or pane target names, and returns a
Refto the pane it will create.The returned ref can target later steps before the pane exists:
plan := tmux.NewPlan() pane := plan.SplitPane(window.Ref(), tmux.SplitPaneRequest{}) plan.SendKeys(pane, tmux.SendKeysRequest{Command: tmux.Ptr("top")}) result, err := plan.Run(ctx, server)
0 declared, 0 inherited