csi: DECSTBM: move cursor to top left corner of scrolling region

This commit is contained in:
Daniel Eklöf 2019-07-01 19:13:45 +02:00
parent d70956da08
commit b45b492f41
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
csi.c
View file

@ -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);