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

#165 in Parser implementations

Download history 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 1118374/week @ 2024-02-27 1107393/week @ 2024-03-05 1094780/week @ 2024-03-12 1127102/week @ 2024-03-19 894860/week @ 2024-03-26

4,431,443 downloads per month
Used in 1,313 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