aboutsummaryrefslogtreecommitdiff
path: root/src/term.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-09-18 11:17:44 -0700
committerJoe Wilm <joe@jwilm.com>2016-09-18 11:26:00 -0700
commit13d2d66b6bf213726ec864b84db471f2eec9f742 (patch)
tree4b2b1bbe9173bfd250d5b840e5e85dc76c9ad424 /src/term.rs
parent0d6d0dc0af028ead15c188db5d5f30e39fe0e3e7 (diff)
downloadr-alacritty-13d2d66b6bf213726ec864b84db471f2eec9f742.tar.gz
r-alacritty-13d2d66b6bf213726ec864b84db471f2eec9f742.tar.bz2
r-alacritty-13d2d66b6bf213726ec864b84db471f2eec9f742.zip
Rewrite ansi parser using vte crate
Using the vte crate allows removal of the ansi parser state machine and enables us to just be concerned with actions described in the protocol. In addition to making alacritty simpler, this also improves correctness and performance.
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs
index 0cb54240..3dfab06c 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -457,7 +457,7 @@ impl ansi::Handler for Term {
/// A character to be displayed
#[inline]
fn input(&mut self, c: char) {
- debug_print!("{}", c);
+ debug_print!("{}; attrs = {:?}", c, self.attr);
if self.cursor.col == self.grid.num_cols() {
debug_println!("wrapping");
if (self.cursor.line + 1) >= self.scroll_region.end {