Commit Graph

4 Commits

Author SHA1 Message Date
Mortdecai 84018efbbf fix(parse): strip OSC escape sequences in StripAnsi for backwards compat 2026-04-07 20:05:16 -04:00
Mortdecai b3bbd55551 feat(parse): add ExtractImages stream scanner for OSC 9 markers
Implements ExtractImages() which scans filter stdout line-by-line,
extracts valid OSC 9 image markers into ImageRef structs, and replaces
marker lines with null-delimited placeholders (\x00IMG:N\x00). Invalid
markers (missing path) pass through unchanged. Also clarifies the Index
field comment in ImageRef to indicate it is set by ExtractImages, not
ParseImageOSC.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 20:03:53 -04:00
Mortdecai 00a6660db5 feat(parse): add ImageRef type and OSC 9 marker parser
Introduces ImageRef struct and ParseImageOSC() to parse OSC 9 image
markers (\033]9;image:path=...;alt=...\007) emitted by filters. Supports
BEL and ESC-backslash terminators, tolerates markers embedded in larger
lines, and rejects malformed or path-less markers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 19:57:17 -04:00
Mortdecai 083402a548 init: pristine aerc 0.20.0 source 2026-04-07 19:54:54 -04:00