aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-16 14:27:20 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-16 14:27:20 +0000
commitbcf46d9eab5cd9d96c4de473cb2c5281cdf8e0f6 (patch)
tree0633ad3f8904e47003c68d744f079f5c32596078 /terminal.h
parentMerge branch 'dont-crash-when-keyboard-repeat-rate-is-zero' (diff)
parentcsi: implement DECSET 47 - use alternate screen buffer (diff)
Merge branch 'decset-1047-and-1048'
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);