Versions in this module Expand all Collapse all v0 v0.0.4 Nov 26, 2026 Changes in this version + const DefaultWaitTimeout + func AllText(b *mock.Backend) string + func Lines(text string) []string + func Render(t *testing.T, node trail.Node, width, height int) string + func ScrollbackText(b ScrollbackSource) string + func SurfaceLines(b *mock.Backend) []string + func SurfaceText(b *mock.Backend) string + func SurfaceTextKeepBlanks(b *mock.Backend) string + func TrimmedLines(text string) []string + func TrimmedLinesText(text string) string + type App struct + Backend *mock.Backend + func NewApp(t *testing.T, node trail.Node, width, height int) *App + func StartApp(t *testing.T, node trail.Node, width, height int) *App + func (a *App) AwaitFrame(timeout time.Duration) string + func (a *App) HasFrame() bool + func (a *App) Press(k key.Key) string + func (a *App) Stop() + func (a *App) Text() string + func (a *App) Type(text string) string + func (a *App) WaitFor(cond func(string) bool) string + func (a *App) WaitUntil(cond func(string) bool, timeout time.Duration) string + type ClearingBackend struct + func NewClearingBackend(b *mock.Backend) *ClearingBackend + func (c *ClearingBackend) AllInsertedAbove() []*backend.Buffer + func (c *ClearingBackend) AllText() string + func (c *ClearingBackend) Clear() + func (c *ClearingBackend) ClearCount() int + func (c *ClearingBackend) ScrollbackText() string + type Env struct + func NewEnv(t *testing.T, width, height int) *Env + func (e *Env) KeyPress(keyOrChar string, mods ...key.Mod) string + func (e *Env) Press(k key.Key) string + func (e *Env) Render(node trail.Node) string + func (e *Env) Text() string + func (e *Env) Type(text string) string + type ScrollbackSource interface + AllInsertedAbove func() []*backend.Buffer