aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 19fff0e2..04d2d5b7 100644
--- a/terminal.h
+++ b/terminal.h
@@ -106,6 +106,14 @@ struct grid {
int offset;
int view;
+ /*
+ * Note: the cursor (not the *saved* cursor) could most likely be
+ * global state in the term struct.
+ *
+ * However, we have grid specific functions that does not have
+ * access to the owning term struct, but does need access to the
+ * cursor.
+ */
struct cursor cursor;
struct cursor saved_cursor;
@@ -595,6 +603,7 @@ void term_reverse_index(struct terminal *term);
void term_arm_blink_timer(struct terminal *term);
+void term_save_cursor(struct terminal *term);
void term_restore_cursor(struct terminal *term, const struct cursor *cursor);
void term_visual_focus_in(struct terminal *term);