mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
* fix(terminal): end tail lines at CR CR LF instead of reading them as empty Raw-mode programs end lines with CR CR LF. The output normalizer folded only the CR directly before LF, so the leftover CR made each completed line read as the empty text after it, and terminal.read returned blank lines. A run of CRs lands on the same column as one CR, so treat the whole run before LF as part of the line ending. Fixes #38667 * chore: shorten the CR run comment Refs #38667 * fix(terminal): defer CR until kept output decides it A CR followed only by discarded escapes and then LF (text CR SGR CR LF) still read as an empty line, and a restore cut landing just before CR CR LF seeded a blank first row. The normalizer now holds each CR until the next kept output: before LF it ends the line, and runs or escape-split CRs act as one. The restore anchor skips a whole CR-run line ending. Refs #38667 * test: size the restore-cut case from the exported seed limit Refs #38667