aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index e4a60eda..0200e6a3 100644
--- a/csi.c
+++ b/csi.c
@@ -380,6 +380,21 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
+ case 'r': {
+ int start = term->vt.params.idx > 0 ? term->vt.params.v[0].value : 1;
+ int end = term->vt.params.idx > 1
+ ? term->vt.params.v[1].value : term->grid.rows;
+
+ /* 1-based */
+ term->grid.scrolling_region.start = start - 1;
+ term->grid.scrolling_region.end = end - 1;
+
+ tll_free(term->grid.damage);
+ grid_damage_update(&term->grid, 0, term->grid.rows * term->grid.cols);
+ grid_cursor_to(&term->grid, 0, 0);
+ break;
+ }
+
case 't':
/*
* TODO: xterm's terminfo specifies *both* \e[?1049h *and*