Documentation
¶
Overview ¶
Package vt defines Loom's pane-display abstraction. An Emulator consumes raw PTY bytes from the tmux-client stream and renders the current visible screen as a string the UI prints verbatim. tmux remains the session owner; this is display only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emulator ¶
type Emulator interface {
// Write feeds raw PTY bytes (ANSI/CSI/OSC/DCS) into the emulator. It
// mirrors io.Writer so it can be the output pump's destination directly.
Write(p []byte) (n int, err error)
// Resize sets the emulator's screen geometry in cells.
Resize(cols, rows int)
// Render returns the current VISIBLE screen as a string with embedded
// ANSI SGR sequences, sized to the last Resize. The UI prints this verbatim.
Render() string
// Cursor returns the current cursor position and visibility.
Cursor() Cursor
// Close releases emulator resources. Safe to call multiple times.
Close() error
}
Emulator is the display surface for one pane. Implementations must be safe for one writer goroutine (the tmux output pump calling Write) concurrent with reader calls (Render/Cursor) from the Bubble Tea Update goroutine.
Click to show internal directories.
Click to hide internal directories.