terminalfixture

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package terminalfixture provides synthetic terminal workloads for tests and benchmarks. Its data is authored for Sidecar and contains no captured user terminal content.

Index

Constants

View Source
const (
	ExistingGoPath  = "internal/runtime/frame.go"
	ExistingDocPath = "docs/terminal.md"
	MissingPath     = "build/missing-output.log"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenCode

type OpenCode struct {
	Width  int
	Height int
	// contains filtered or unexported fields
}

OpenCode is a deterministic OpenCode-shaped full-screen terminal workload. Frames include a canvas, a full-height side panel, changing status cells, safe URLs, file candidates, negative candidates, and bounded history rows.

func NewOpenCode

func NewOpenCode(width, height int) OpenCode

NewOpenCode builds a reusable fixture at the requested pane geometry.

func (OpenCode) Burst

func (f OpenCode) Burst(step int) []byte

Burst returns one ordered ANSI update for a seeded screen model.

func (OpenCode) Frame

func (f OpenCode) Frame(step int) string

Frame returns one capture-shaped snapshot. Every fourth frame carries a few history rows above the live grid, reproducing occasional scroll movement.

func (OpenCode) PopulateRoot

func (f OpenCode) PopulateRoot(root string) error

PopulateRoot creates only the fixture's positive file candidates beneath a caller-owned temporary root. The negative candidate remains absent.

Directories

Path Synopsis
cmd
opencode command
Command opencode emits a deterministic OpenCode-shaped terminal workload for isolated Sidecar performance proofs.
Command opencode emits a deterministic OpenCode-shaped terminal workload for isolated Sidecar performance proofs.

Jump to

Keyboard shortcuts

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