aboutsummaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 64541b33..0a51aac3 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -490,7 +490,7 @@ impl IndexMut<CharsetIndex> for Charsets {
#[derive(Default, Copy, Clone)]
pub struct Cursor {
/// The location of this cursor
- point: Point,
+ pub point: Point,
/// Template cell when using this cursor
template: Cell,
@@ -1054,6 +1054,11 @@ impl Term {
&self.mode
}
+ #[inline]
+ pub fn cursor(&self) -> &Cursor {
+ &self.cursor
+ }
+
pub fn swap_alt(&mut self) {
if self.alt {
let template = self.empty_cell;