From 09600a3d402a08c94803c00624fa7ac7bcfad73e Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Thu, 23 Jun 2016 09:42:00 -0700 Subject: Fix bug handling ansi mode sequences The sense of set_mode and unset_mode was inverted. The TextCursor/ShowCursor mode depended on the incorrect behavior, and that was fixed as well. TextCursor was renamed to ShowCursor to be perfectly clear on the intent. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 48f2df74..33e5e8f9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -250,7 +250,7 @@ fn main() { api.render_grid(terminal.grid(), &mut glyph_cache); // Also draw the cursor - if !terminal.mode().contains(term::mode::TEXT_CURSOR) { + if terminal.mode().contains(term::mode::SHOW_CURSOR) { api.render_cursor(terminal.cursor(), &mut glyph_cache); } }) -- cgit