Commit 41975df
committed
Add ANSI.replay to collapse captured repaints
Apply viewport-independent terminal controls to a line grid so captured spinner and progress-bar repaints collapse to their final output.
Parse streams with a VT-style state machine, discard presentation and alternate-screen content, and use the internal Unicode terminal-width helper for correct wide-glyph cursor placement without changing existing layout APIs.
Co-authored-by: River <river@shopify.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Assisted-By: devx/b840c1e6-d979-473d-9216-a53477380bf11 parent 621f749 commit 41975df
3 files changed
Lines changed: 1028 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
51 | 81 | | |
52 | 82 | | |
53 | 83 | | |
| |||
0 commit comments