anstyle icon indicating copy to clipboard operation
anstyle copied to clipboard

Provide stream parser

Open epage opened this issue 3 years ago • 1 comments

This will be a building block for implicit conversions between formats

epage avatar Jun 10 '22 14:06 epage

See

  • https://crates.io/crates/vte/0.10.1
    • full ANSI parser state machine
    • Roughly like what we want but works on individual bytes and not sequences of bytes which is likely not as good for performance
    • https://crates.io/crates/strip-ansi-escapes
      • Uses vte to strip escape codes
    • https://crates.io/crates/vt100
      • Uses vte to create screen simulator
    • Apache / MIT
  • https://crates.io/crates/fwdansi/1.1.0
    • Subset of state machine parsing
    • A byte at a time
    • MIT
  • https://lib.rs/crates/ansi-parser
    • Uses nom
    • Deals with chunks of data
    • MPL
  • https://lib.rs/crates/vtparse
    • MIT
    • Parse bytes, buffers is just a wrapper around bytes
    • Outputs through a trait like vte
  • console

epage avatar Jun 10 '22 14:06 epage