libtmux Reference MCP Search
On this page

tmuxtest.NewWindow

View as Markdown

Module
tmuxtest
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/tmuxtest/resources.go
NewWindow ( ctx : context.Context , t : testing.TB , session : tmux.Session , request : tmux.NewWindowRequest ) tmux.Window
function [source]
function [source]
NewWindow

NewWindow creates a test-owned tmux.Window and registers cleanup against its stable ID. A nil tmux.NewWindowRequest.Name receives a collision-checked temporary name; an empty non-nil name remains explicit. The request and referenced values are copied before tmux is called, and setup failures call testing.TB.Fatal. Cleanup belongs to t rather than ctx and follows the window if it is moved.

0 declared, 0 inherited

Esc

Type to search.