-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
type/enhancementFeatures or improvements to existing featuresFeatures or improvements to existing features
Milestone
Description
Since the current main parser does not cover some well defined exceptional escape code conditions I want to propose to switch over to this reference parser https://vt100.net/emu/dec_ansi_parser, which covers 99% of the DEC terminal sequences up to the vt500 series.
I've done a JS implementation years ago that could be adopted to xterm.js (https://github.com/netzkolchose/node-ansiparser). It is based on a FSM approach, adoption should be straight forward with a parser-terminal interface. The FSM could be extended to support pluggable custom escape codes. Speed should be no concern (runs at 80MB/s average, with minor tweaks at 100MB/s).
Switching over to that parser would raise the DEC/ANSI compatibility to almost 100%.
Metadata
Metadata
Assignees
Labels
type/enhancementFeatures or improvements to existing featuresFeatures or improvements to existing features