aboutsummaryrefslogtreecommitdiff
path: root/font/src/lib.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2017-12-06 23:44:51 +0100
committerJoe Wilm <jwilm@users.noreply.github.com>2017-12-24 09:46:54 -0800
commit5149dcffbffe0bf35ad3bc85a48f9c82b9ea6477 (patch)
tree781267e955d7faff683f43c34022450df8287405 /font/src/lib.rs
parentbf72b5a326c2c06541fd0564417a4ad52a9938bc (diff)
downloadr-alacritty-5149dcffbffe0bf35ad3bc85a48f9c82b9ea6477.tar.gz
r-alacritty-5149dcffbffe0bf35ad3bc85a48f9c82b9ea6477.tar.bz2
r-alacritty-5149dcffbffe0bf35ad3bc85a48f9c82b9ea6477.zip
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.
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r--font/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs
index 513dacdd..d22746d3 100644
--- a/font/src/lib.rs
+++ b/font/src/lib.rs
@@ -58,6 +58,12 @@ mod darwin;
#[cfg(target_os = "macos")]
pub use darwin::*;
+/// Character used for the underline cursor
+#[cfg(not(target_os = "macos"))]
+pub const UNDERLINE_CURSOR_CHAR: char = '􊏢';
+#[cfg(target_os = "macos")]
+pub const UNDERLINE_CURSOR_CHAR: char = '▁';
+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct FontDesc {
name: String,