generated from ali/HarmonyTemplate
- VtParser: Paul Williams state machine subset - UTF-8 decode (strict, FFFD on overlong/surrogate/interrupt), C0 execute, C1 shortcuts, ESC/ESC_INT/SS3/CSI/OSC(BEL|ST)/DCS(prefix+hook+data)/STR strings, CAN/SUB abort, reprocess semantics for aborted strings - TerminalBuffer: main + lazy alt grids, scrollback 5000 (main only, region top==0), DECSTBM margins, tab stops, IL/DL/ICH/DCH/ECH/SU/SD/ RI with wide-cell orphan repair, per-row dirty flags, resize - TerminalEmulator: SGR (16/256/truecolor, 38;2/48;2), deferred wrap (DECAWM), DECSET/RST 1/6/7/25/47/1000/1002/1003/1004/1006/1047/1048/ 1049/2004, origin mode, IRM, DECSC/RC + CSI s/u, DECSTBM, RIS, DECALN, REP; replies DA1 ESC[?1;2c, DA2 ESC[>0;100;0c, DSR 5/6, XTVERSION DCS >|HavenOH(0.1) ST, CSI 18t size report; OSC 0/2/7/8/9/52/777 with hyperlink scheme whitelist - VtInput: xterm key encodings (arrows/DECCKM/Home/End/PgUp..F12 with modifier params, F1-F4 SS3, ctrl/alt maps), bracketed paste, SGR mouse - VtSelfTest: 12 cases incl. CJK double-width, alt-screen round-trip, scrollback growth, scroll region + RI, query replies, and the 'echo ni hao && vim' byte-stream replay (T7 acceptance) - 12/12 pass - DiagPage: button 11 runs the emulator self-test Verified: Node 24 transform-types run 12/12 PASS; hvigor BUILD SUCCESSFUL