aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/term
diff options
context:
space:
mode:
authorKirill Chibisov <wchibisovkirill@gmail.com>2019-11-23 20:08:52 +0300
committerChristian Duerr <contact@christianduerr.com>2019-11-23 18:08:52 +0100
commit474032742b3bf325e655eb6cddb19632cb989c1a (patch)
tree9ae4ed52a0fe756474329c5c57076690525d511a /alacritty_terminal/src/term
parent624b3e2189df93145559ebba96e0a7754845c033 (diff)
downloadalacritty-474032742b3bf325e655eb6cddb19632cb989c1a.tar.gz
alacritty-474032742b3bf325e655eb6cddb19632cb989c1a.zip
Move renderer from alacritty_terminal to alacritty
Diffstat (limited to 'alacritty_terminal/src/term')
-rw-r--r--alacritty_terminal/src/term/mod.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs
index 6a51ba35..a5bc8313 100644
--- a/alacritty_terminal/src/term/mod.rs
+++ b/alacritty_terminal/src/term/mod.rs
@@ -27,7 +27,6 @@ use crate::ansi::{
};
use crate::clipboard::{Clipboard, ClipboardType};
use crate::config::{Config, VisualBellAnimation, DEFAULT_NAME};
-use crate::cursor::CursorKey;
use crate::event::{Event, EventListener};
use crate::grid::{
BidirectionalIterator, DisplayIter, Grid, GridCell, IndexRegion, Indexed, Scroll,
@@ -161,6 +160,13 @@ impl<T> selection::Dimensions for Term<T> {
}
}
+/// A key for caching cursor glyphs
+#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash, Deserialize)]
+pub struct CursorKey {
+ pub style: CursorStyle,
+ pub is_wide: bool,
+}
+
/// Iterator that yields cells needing render
///
/// Yields cells that require work to be displayed (that is, not a an empty