aboutsummaryrefslogtreecommitdiff
path: root/src/term.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/term.rs b/src/term.rs
index 28d7c220..35088db7 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -142,6 +142,11 @@ impl Term {
self.cursor.y
}
+ #[inline]
+ pub fn cursor(&self) -> Cursor {
+ self.cursor
+ }
+
/// Set character in current cursor position
fn set_char(&mut self, c: char) {
let cell = &mut self.grid[self.cursor];