aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-06-07 21:17:48 -0700
committerJoe Wilm <joe@jwilm.com>2016-06-07 21:17:48 -0700
commit0e7bb8d76e45af6154b0fb76184ae55df7cf80e1 (patch)
tree678da39563498573c9a8ca176d72b5930e4d91fc /src/main.rs
parent6c82fa9d7b39a6ae70f1e233c9123b9d32c30623 (diff)
downloadr-alacritty-0e7bb8d76e45af6154b0fb76184ae55df7cf80e1.tar.gz
r-alacritty-0e7bb8d76e45af6154b0fb76184ae55df7cf80e1.tar.bz2
r-alacritty-0e7bb8d76e45af6154b0fb76184ae55df7cf80e1.zip
Handle TEXT_CURSOR mode
When the flag is unset, the cursor is not rendered.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
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);
+ }
})
}