e2e

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferToASCII

func BufferToASCII(buf *uv.Buffer) string

BufferToASCII converts a UV buffer to ASCII text. Trailing spaces are trimmed.

func CellsToASCII

func CellsToASCII(screen [][]vterm.Cell) string

CellsToASCII converts a vterm screen buffer to ASCII text.

func RenderViewToBuffer

func RenderViewToBuffer(view tea.View, width, height int) *uv.Buffer

RenderViewToBuffer renders a tea.View into a UV buffer for inspection.

Types

type PTYOptions

type PTYOptions struct {
	Width  int
	Height int
	Setup  func(home string) error
	Env    []string
	Home   string
}

type PTYSession

type PTYSession struct {
	// contains filtered or unexported fields
}

func StartPTYSession

func StartPTYSession(opts PTYOptions) (*PTYSession, func(), error)

func (*PTYSession) ScreenASCII

func (s *PTYSession) ScreenASCII() string

func (*PTYSession) SendBytes

func (s *PTYSession) SendBytes(data []byte) error

func (*PTYSession) SendString

func (s *PTYSession) SendString(text string) error

func (*PTYSession) WaitForAbsent

func (s *PTYSession) WaitForAbsent(substr string, timeout time.Duration) error

func (*PTYSession) WaitForContains

func (s *PTYSession) WaitForContains(substr string, timeout time.Duration) error

func (*PTYSession) WaitForExit added in v0.0.9

func (s *PTYSession) WaitForExit(timeout time.Duration) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL