Documentation
¶
Overview ¶
Package reference implements the deterministic TUI used to exercise TUICast automation and terminal emulation.
Index ¶
- type Application
- func (a *Application) Init() tea.Cmd
- func (a *Application) Run(input io.Reader, output io.Writer) error
- func (a *Application) RunWithResizes(input io.Reader, output io.Writer, resizes <-chan Size) error
- func (a *Application) SetVTTestRunner(runner VTTestRunner)
- func (a *Application) Update(message tea.Msg) (tea.Model, tea.Cmd)
- func (a *Application) View() tea.View
- type CommandVTTestRunner
- type FatalVTTestError
- type Size
- type VTTestRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application is one isolated Bubble Tea reference application. Its pages, components, and deterministic scenario data are all compiled into the reference binary.
func New ¶
func New(width, height int) (*Application, error)
New creates a reference application with the requested terminal dimensions.
func (*Application) RunWithResizes ¶
RunWithResizes serves one application session and applies terminal size changes received from a remote protocol.
func (*Application) SetVTTestRunner ¶
func (a *Application) SetVTTestRunner(runner VTTestRunner)
SetVTTestRunner replaces the external VTTEST launcher. Passing nil restores the default launcher.
type CommandVTTestRunner ¶
type CommandVTTestRunner struct{}
CommandVTTestRunner launches the system's vttest executable.
type FatalVTTestError ¶
type FatalVTTestError struct {
Err error
}
FatalVTTestError reports a terminal-lifecycle failure after which the reference application cannot safely continue.
func (*FatalVTTestError) Error ¶
func (e *FatalVTTestError) Error() string
func (*FatalVTTestError) Unwrap ¶
func (e *FatalVTTestError) Unwrap() error