5 releases

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

#147 in Parser implementations

Download history 1652416/week @ 2024-07-30 1677550/week @ 2024-08-06 1676617/week @ 2024-08-13 1698377/week @ 2024-08-20 1644586/week @ 2024-08-27 1791500/week @ 2024-09-03 1745481/week @ 2024-09-10 1830594/week @ 2024-09-17 1939607/week @ 2024-09-24 2320489/week @ 2024-10-01 2650248/week @ 2024-10-08 2472104/week @ 2024-10-15 1974855/week @ 2024-10-22 1967602/week @ 2024-10-29 1947260/week @ 2024-11-05 1646435/week @ 2024-11-12

7,934,882 downloads per month
Used in 1,840 crates (13 directly)

Apache-2.0 OR MIT

14KB
166 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