From 5149dcffbffe0bf35ad3bc85a48f9c82b9ea6477 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 6 Dec 2017 23:44:51 +0100 Subject: Revert to old system for macos Because rendering with macos works differently, the old underline cursor is used for that. The cursor symbol has also been setup as a constant in the font project. --- src/term/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/term/mod.rs b/src/term/mod.rs index 892a96bb..1fbe4d8e 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -22,6 +22,7 @@ use std::time::{Duration, Instant}; use arraydeque::ArrayDeque; use unicode_width::UnicodeWidthChar; +use font; use ansi::{self, Color, NamedColor, Attr, Handler, CharsetIndex, StandardCharset, CursorStyle}; use grid::{BidirectionalIterator, Grid, ClearRegion, ToRange, Indexed}; use index::{self, Point, Column, Line, Linear, IndexRange, Contains, RangeInclusive}; @@ -208,7 +209,7 @@ impl<'a> RenderableCellsIter<'a> { let cursor_color = self.text_cursor_color(&cursor_cell); // This is part of the private use area and shouldn't be used by any font - cursor_cell.c = '􊏢'; + cursor_cell.c = font::UNDERLINE_CURSOR_CHAR; cursor_cell.fg = cursor_color; self.cursor_cells.push_back(Indexed { line: self.cursor.line, -- cgit