Documentation
¶
Overview ¶
Package terminal derives rendered VT frames from raw PTY bytes.
See internal/pty/doc.go for the governing ADR/SPIKE citations that authorize this vt10x-backed emulator wrapper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emulator ¶
type Emulator interface {
Feed([]byte) (Frame, error)
Resize(Size) Frame
Snapshot() Frame
PendingBytes() []byte
}
Emulator is the internal terminal rendering interface.
type Frame ¶
type Frame struct {
Seq uint64
At time.Time
TMS int64
Size Size
Text []string
Cells [][]Cell
Cursor Cursor
Title string
RawStart int64
RawEnd int64
ParserOffset int64
}
Frame is a deterministic rendered VT snapshot.
type Normalizer ¶
Normalizer rewrites volatile frame data without mutating raw evidence.
type Option ¶
type Option func(*config)
Option configures New.
func WithNormalizer ¶
func WithNormalizer(n Normalizer) Option
WithNormalizer adds a volatile-content normalization hook.
type VT10x ¶
type VT10x struct {
// contains filtered or unexported fields
}
VT10x wraps the selected real VT/ANSI emulator backend.
func (*VT10x) PendingBytes ¶
PendingBytes returns incomplete escape/UTF-8 bytes retained for the next feed.
Click to show internal directories.
Click to hide internal directories.