Versions in this module Expand all Collapse all v0 v0.1.0 Feb 7, 2026 Changes in this version + type Key string + const Backspace + const Delete + const Down + const End + const Enter + const Escape + const F1 + const F10 + const F11 + const F12 + const F2 + const F3 + const F4 + const F5 + const F6 + const F7 + const F8 + const F9 + const Home + const Left + const PageDown + const PageUp + const Right + const Space + const Tab + const Up + func Alt(c byte) Key + func Ctrl(c byte) Key + type Matcher func(s *Screen) (ok bool, description string) + func All(matchers ...Matcher) Matcher + func Any(matchers ...Matcher) Matcher + func Cursor(row, col int) Matcher + func Empty() Matcher + func Line(n int, s string) Matcher + func LineContains(n int, substr string) Matcher + func Not(m Matcher) Matcher + func Regexp(pattern string) Matcher + func Text(s string) Matcher + type Option func(*options) + func WithArgs(args ...string) Option + func WithDir(dir string) Option + func WithEnv(env ...string) Option + func WithHistoryLimit(limit int) Option + func WithPollInterval(d time.Duration) Option + func WithSize(width, height int) Option + func WithTimeout(d time.Duration) Option + func WithTmuxPath(path string) Option + type Screen struct + func (s *Screen) Contains(substr string) bool + func (s *Screen) Line(n int) string + func (s *Screen) Lines() []string + func (s *Screen) MatchSnapshot(t testing.TB, name string) + func (s *Screen) Size() (width, height int) + func (s *Screen) String() string + type Terminal struct + func Open(t testing.TB, binary string, userOpts ...Option) *Terminal + func (term *Terminal) MatchSnapshot(name string) + func (term *Terminal) Press(keys ...Key) + func (term *Terminal) Resize(width, height int) + func (term *Terminal) Screen() *Screen + func (term *Terminal) Scrollback() *Screen + func (term *Terminal) SendKeys(keys ...string) + func (term *Terminal) Type(s string) + func (term *Terminal) WaitExit(wopts ...WaitOption) int + func (term *Terminal) WaitFor(m Matcher, wopts ...WaitOption) + func (term *Terminal) WaitForScreen(m Matcher, wopts ...WaitOption) *Screen + type WaitOption func(*waitOptions) + func WithWaitPollInterval(d time.Duration) WaitOption + func WithinTimeout(d time.Duration) WaitOption