diff options
| -rw-r--r-- | terminal.c | 10 | ||||
| -rw-r--r-- | terminal.h | 2 |
2 files changed, 12 insertions, 0 deletions
@@ -363,6 +363,16 @@ term_reverse_index(struct terminal *term) } void +term_reset_view(struct terminal *term) +{ + if (term->grid->view == term->grid->offset) + return; + + term->grid->view = term->grid->offset; + term_damage_view(term); +} + +void term_restore_cursor(struct terminal *term) { int row = min(term->saved_cursor.row, term->rows - 1); @@ -392,6 +392,8 @@ 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_reset_view(struct terminal *term); + void term_damage_scroll( struct terminal *term, enum damage_type damage_type, struct scroll_region region, int lines); |
