diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-09-29 08:03:00 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-11 17:22:58 +0000 |
| commit | 0caa9c4173b1df677df408435c47a0bc3bde4770 (patch) | |
| tree | 17aa4fb18e160ab9146e65c552074e777ba432d8 /terminal.c | |
| parent | input: mouse: match binding if binding’s click count is *less* (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.c')
| -rw-r--r-- | terminal.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1627,6 +1627,19 @@ term_damage_view(struct terminal *term) } void +term_damage_cursor(struct terminal *term) +{ + term->grid->cur_row->cells[term->grid->cursor.point.col].attrs.clean = 0; + term->grid->cur_row->dirty = true; +} + +void +term_damage_margins(struct terminal *term) +{ + term->render.margins = true; +} + +void term_damage_scroll(struct terminal *term, enum damage_type damage_type, struct scroll_region region, int lines) { |
