Commit f433990
fix: update vt100 0.15 → 0.16 to restore dim (SGR 2) attribute in snapshots (#16)
vt100 0.15 did not track the dim/faint attribute (SGR 2) at all — no
TEXT_MODE_DIM bit and no handler in sgr(). As a result, state_formatted()
never re-emitted ESC[2m, so text rendered as dim in the live session would
appear as normal-weight text after a detach/re-attach cycle.
vt100 0.16 adds TEXT_MODE_DIM and handles SGR 2 → set_dim(), and
state_formatted() correctly re-emits Intensity::Dim as ESC[2m.
Confirmed via byte-level comparison of live PTY output vs snapshot:
ORIGINAL: ESC[2mNo ESC[0m (faint)
0.15 snap: ESC[m No (dim lost)
0.16 snap: ESC[m ESC[2mNo (dim preserved)
API changes in 0.16:
- screen.errors() removed → dropped from debug log format string
- parser.set_size(rows, cols) → parser.screen_mut().set_size(rows, cols)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 4c69a43 commit f433990
3 files changed
+9
-21
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments