1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 19:27:22 +03:00
wezterm/vtparse/README.md

21 lines
708 B
Markdown
Raw Normal View History

2019-06-30 04:58:07 +03:00
# vtparse
This is an implementation of a parser for escape and control sequences.
It is based on the [DEC ANSI Parser](https://vt100.net/emu/dec_ansi_parser).
It has been modified slightly to support UTF-8 sequences.
`vtparse` is the lowest level parser; it categorizes the basic
types of sequences but does not ascribe any semantic meaning
to them.
You may wish to look at `termwiz::escape::parser::Parser` in the
[termwiz](https://docs.rs/termwiz) crate if you're looking for semantic
parsing.
## Comparison with the `vte` crate
`vtparse` has support for dynamically sized OSC buffers, which makes
it suitable for processing large escape sequences, such as those
used by the `iTerm2` image protocol.