diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-16 14:27:20 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-16 14:27:20 +0000 |
| commit | bcf46d9eab5cd9d96c4de473cb2c5281cdf8e0f6 (patch) | |
| tree | 0633ad3f8904e47003c68d744f079f5c32596078 /terminal.h | |
| parent | Merge branch 'dont-crash-when-keyboard-repeat-rate-is-zero' (diff) | |
| parent | csi: implement DECSET 47 - use alternate screen buffer (diff) | |
Merge branch 'decset-1047-and-1048'
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |
