e94f4856e3
CSI parameters now record colon subparameters (ITU T.416), so SGR 4:3 is a curly underline instead of 4 and 3 = 43 (yellow background), and 38:2::r:g:b, 38:2:r:g:b and 38:5:n set colours. Underline styles 4:0-4:5 and 21 (double) are stored on the cell; 58/59 underline colours are consumed and ignored; 53/55 toggle overline; 22 clears bold and faint; truncated 38;5 no longer throws. Intermediate bytes and private prefixes are kept, so CSI > 4;2 m (modifyOtherKeys) is no longer applied as SGR. An empty parameter reads as 0 (default), so CSI ;5H and CSI 3H position the cursor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xterm (vendored)
This is our maintained copy of xterm.dart,
vendored from the pub.dev release 4.0.0 (MIT, see LICENSE; the upstream
README is kept as UPSTREAM_README.md). Upstream is unmaintained, so the app
depends on this directory through a path dependency and we patch it here.
The commit that added this directory is the pristine upstream copy; every later
change is a local patch. Review them with git log -p -- app/third_party/xterm.
Tests for the patches live in the app tree, app/test/third_party_xterm/, so they
run under the memory watchdog with the rest of the app tests. The app's
analysis_options.yaml excludes this directory from its strict lints; the code
still compiles as part of every app build.
Local patches (keep this list current):
- colon-form SGR subparameters (
4:3,38:2::r:g:b,58/59) - DCS/APC/PM/SOS strings consumed rather than printed
- full RIS (
ESC c) reset - DECSCUSR cursor shapes, SCOSC/SCORC, CHT, CBT, HPA, HPR, VPR
- OSC 10/11/12 colour queries, OSC 8/52/7 callbacks
- alternate screen 1049 cursor restore, separate DECCKM mode
- mouse wheel, drag/motion and middle-button reporting; Shift selection override
- cursor and attribute rendering (inverse block cursor, strikethrough, conceal)
- focus reporting (
?1004)