From 0e7bb8d76e45af6154b0fb76184ae55df7cf80e1 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Tue, 7 Jun 2016 21:17:48 -0700 Subject: Handle TEXT_CURSOR mode When the flag is unset, the cursor is not rendered. --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index fd22b304..7c130bc4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -202,7 +202,9 @@ fn main() { api.render_grid(terminal.grid(), &mut glyph_cache); // Also draw the cursor - api.render_cursor(terminal.cursor(), &mut glyph_cache); + if !terminal.mode().contains(term::mode::TEXT_CURSOR) { + api.render_cursor(terminal.cursor(), &mut glyph_cache); + } }) } -- cgit