aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-29 08:03:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-29 08:04:18 +0000
commit5116e40581ad5f2a326e3022a1f148402cf26b4d (patch)
tree17aa4fb18e160ab9146e65c552074e777ba432d8 /terminal.h
parentMerge branch 'allow-mouse-binding-click-count-less-than' into master (diff)
term: add term_damage_cursor() and term_damage_margins()
term_damage_cursor() damages the cell where the cursor is currently at. This can be used to ensure the cursor is re-drawn, if there aren’t any other pending updates. term_damage_margins() requests the margins be redrawn the next time we render the grid.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 12e93ce2..13339c3b 100644
--- a/terminal.h
+++ b/terminal.h
@@ -388,6 +388,8 @@ struct terminal {
bool title;
} pending;
+ bool margins; /* Someone explicitly requested a refresh of the margins */
+
int scrollback_lines; /* Number of scrollback lines, from conf (TODO: move out from render struct?) */
struct {
@@ -512,6 +514,9 @@ void term_damage_rows_in_view(struct terminal *term, int start, int end);
void term_damage_all(struct terminal *term);
void term_damage_view(struct terminal *term);
+void term_damage_cursor(struct terminal *term);
+void term_damage_margins(struct terminal *term);
+
void term_reset_view(struct terminal *term);
void term_damage_scroll(