MCPcopy Index your code
hub / github.com/alacritty/vte

github.com/alacritty/vte @v0.13.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.13.0 ↗ · + Follow
274 symbols 571 edges 10 files 103 documented · 38%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Extension points exported contracts — how you extend this code

Perform (Interface)
Performs actions requested by the Parser Actions in this case mean, for example, handling a CSI escape sequence describ [4 …
src/lib.rs
Receiver (Interface)
Handles codepoint and invalid sequence events from the parser. [3 implementers]
utf8parse/src/lib.rs
Timeout (Interface)
Interface for creating timeouts and checking their expiry. This is internally used by the [`Processor`] to handle synch [2 …
src/ansi.rs
Handler (Interface)
Type that handles actions from the parser. XXX Should probably not provide default impls for everything, but it makes w [1 …
src/ansi.rs

Core symbols most depended-on inside this repo

advance
called by 34
src/lib.rs
len
called by 27
src/params.rs
map
called by 20
src/ansi.rs
next
called by 17
src/params.rs
advance
called by 16
src/ansi.rs
iter
called by 16
src/params.rs
push
called by 16
src/params.rs
is_empty
called by 7
src/params.rs

Shape

Method 162
Function 69
Enum 20
Class 19
Interface 4

Languages

Rust100%

Modules by API surface

src/ansi.rs161 symbols
src/lib.rs58 symbols
src/params.rs14 symbols
examples/parselog.rs10 symbols
vte_generate_state_changes/src/lib.rs9 symbols
utf8parse/src/lib.rs9 symbols
src/definitions.rs6 symbols
utf8parse/tests/utf-8-demo.rs4 symbols
utf8parse/src/types.rs3 symbols

For agents

$ claude mcp add vte \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact