4 releases

0.2.1 Mar 9, 2023
0.2.0 Jan 12, 2020
0.1.1 Sep 26, 2018
0.1.0 Sep 18, 2016

#256 in Parser implementations

Download history 703516/week @ 2023-11-21 821772/week @ 2023-11-28 825765/week @ 2023-12-05 813474/week @ 2023-12-12 675029/week @ 2023-12-19 491001/week @ 2023-12-26 805817/week @ 2024-01-02 845840/week @ 2024-01-09 984934/week @ 2024-01-16 989058/week @ 2024-01-23 1165811/week @ 2024-01-30 1088901/week @ 2024-02-06 1037565/week @ 2024-02-13 1054038/week @ 2024-02-20 1118407/week @ 2024-02-27 920473/week @ 2024-03-05

4,320,472 downloads per month
Used in 1,294 crates (10 directly)

Apache-2.0 OR MIT

14KB
170 lines

vte

Build Status Crates.io Version

Parser for implementing virtual terminal emulators in Rust.

The parser is implemented according to Paul Williams' ANSI parser state machine. The state machine doesn't assign meaning to the parsed data and is thus not itself sufficient for writing a terminal emulator. Instead, it is expected that an implementation of the Perform trait which does something useful with the parsed data. The Parser handles the book keeping, and the Perform gets to simply handle actions.

See the docs for more info.


lib.rs:

A table-driven UTF-8 Parser

This module implements a table-driven UTF-8 parser which should theoretically contain the minimal number of branches (1). The only branch is on the Action returned from unpacking a transition.

No runtime deps

Features