diff options
author | Christian Duerr <contact@christianduerr.com> | 2017-12-06 23:44:51 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-12-24 09:46:54 -0800 |
commit | 5149dcffbffe0bf35ad3bc85a48f9c82b9ea6477 (patch) | |
tree | 781267e955d7faff683f43c34022450df8287405 /font/src/lib.rs | |
parent | bf72b5a326c2c06541fd0564417a4ad52a9938bc (diff) | |
download | r-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.rs | 6 |
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, |