DEC save/restore cursor pair
Platform spec ADR
DEC save/restore cursor pair
Spec standingStandard
- Contracts and edge cases MUST/SHOULD rules for escape emission and supported sequence subsets.
- Design model ESC/CSI/OSC taxonomy and normative control-character tables for terminal output.
- Examples Representative escape composition and gated emission patterns.
- Flow and algorithm How escape bytes are composed, gated, and written to stdout.
- Verification and traceability Golden tests and source anchors for ANSI escape framing.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
what-this-feature-specifies | yes | yes |
implementation-anchors | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Context
Section titled “Context”Authors need portable cursor stacking without SCO-specific CSI variants in typed builders.
Decision
Section titled “Decision”| Rule | Detail |
|---|---|
| Save/restore | DEC ESC 7 / ESC 8 is the normative pair |
| SCO | CSI s / CSI u are not required in v1 typed builders |
Consequences
Section titled “Consequences”Typed Ansi.Cursor helpers emit DEC only; raw Csi may still be used in tests.
Verification anchors
Section titled “Verification anchors”AnsiEscapeTests.bd; ANSI.md tables.