diff --git a/csi.c b/csi.c index 9e3b8675..22efbeab 100644 --- a/csi.c +++ b/csi.c @@ -481,6 +481,8 @@ csi_dispatch(struct terminal *term, uint8_t final) term->scroll_region.start = start - 1; term->scroll_region.end = end; + term_cursor_to(term, (start - 1) * term->cols, 0); + LOG_INFO("scroll region: %d-%d", term->scroll_region.start, term->scroll_region.end);