From b45b492f4149ce58f01bdec6cf648f30c87bba28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 1 Jul 2019 19:13:45 +0200 Subject: [PATCH] csi: DECSTBM: move cursor to top left corner of scrolling region --- csi.c | 2 ++ 1 file changed, 2 insertions(+) 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);