Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCSIParam ¶
ParseCSIParam parses a single integer from a CSI parameter string.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer tokenizes a string containing ANSI escape sequences.
type Token ¶
type Token struct {
Type TokenType
Text string // The raw text of the token
Params string // CSI: parameter bytes between ESC[ and final byte
Final byte // CSI: command byte; ESC: second byte
}
Token represents a lexical token in an ANSI stream.
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker tracks clickable regions in rendered content using zero-width ANSI markers. Mark wraps content with marker pairs during View, Sweep strips them and builds a coordinate map, and Resolve matches mouse clicks to the innermost marked region.
func (*Tracker) Mark ¶
Mark wraps content with a pair of zero-width CSI markers that will be resolved to screen coordinates during Sweep.
Click to show internal directories.
Click to hide internal directories.