A cross-platform, OpenGL terminal emulator.
Go to file
Joe Wilm 70b0423a31
Initial ANSI parser implementation
This is the initial terminal stream parsing implementation for
Alacritty. There are currently several TODOs, FIXMEs, and unimplemented!
things scattered about still, but what's here is good enough to
correctly parse my zsh startup.

The `Parser` implementation is largely based on the suck-less _simple
terminal_ parser. Because this is Rust and Rust has a fantastic type
system, some improvements are possible. First, `Parser` is a struct, and
its data is stored internally instead of statically. Second, there's no
terminal updates hard-coded into the parser. Instead, `Parser` is
generic over a `Handler` type which has methods for all of the actions
supported by the parser. Because Parser is generic, it should be
possible (with proper inlining) to have equivalent performance to the
hard-coded version.

In addition to using _simple terminal_ as a reference, there's a doc in
Alacritty's repository `docs/ansicode.txt`, a summary of the ANSI
terminal protocol, which has been referenced extensively.

There's probably a large number escapes we don't handle, and that's ok.
There's a lot that aren't necessary for everyday terminal usage. If you
feel like something that's not supported should be, feel free to add it.
Please try not to become overzealous and adding support for sequences
only used by folks trapped in 1988.
2016-05-28 22:09:25 -07:00
docs Add Summary of ANSI standards for ASCII terminals 2016-05-28 08:39:36 -07:00
res Correct sub-pixel font rendering with OpenGL 2016-05-20 21:36:28 -07:00
src Initial ANSI parser implementation 2016-05-28 22:09:25 -07:00
.gitignore Initialize new cargo binary project 2016-02-21 08:15:41 -08:00
.travis.yml Add test font for travis 2016-02-21 19:56:31 -08:00
Cargo.lock Correct sub-pixel font rendering with OpenGL 2016-05-20 21:36:28 -07:00
Cargo.toml Correct sub-pixel font rendering with OpenGL 2016-05-20 21:36:28 -07:00
LICENSE-APACHE Add license 2016-02-23 20:59:31 -08:00
TASKS.md Start tracking some tasks 2016-02-27 22:37:00 -08:00
build.rs Correct sub-pixel font rendering with OpenGL 2016-05-20 21:36:28 -07:00