From 0febce90073b8a8cf7487eb01fa429d5a379e7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 7 Jun 2021 21:57:11 +0200 Subject: [PATCH] csi: IL+DL: move cursor to column 0 This fixes vttest 11.6.6.3 Test non-VT100 -> Test ISO-6429 colors -> Test of VT102-style features with BCE -> Test Insert/Delete Char/Line --- CHANGELOG.md | 1 + csi.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c2680d2..b96667dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -160,6 +160,7 @@ alternate screen. * Restore `SIGHUP` in spawned processes. * Text reflow performance (https://codeberg.org/dnkl/foot/issues/504). +* IL+DL (`CSI Ps L` + `CSI Ps M`) now moves the cursor to column 0. ### Security diff --git a/csi.c b/csi.c index 585ca9d5..045a5b6c 100644 --- a/csi.c +++ b/csi.c @@ -1001,6 +1001,7 @@ csi_dispatch(struct terminal *term, uint8_t final) .end = term->scroll_region.end}, count); term->grid->cursor.lcf = false; + term->grid->cursor.point.col = 0; break; } @@ -1020,6 +1021,7 @@ csi_dispatch(struct terminal *term, uint8_t final) .end = term->scroll_region.end}, count); term->grid->cursor.lcf = false; + term->grid->cursor.point.col = 0; break; }