From 8a4161ee5b11ad94383bb4672921c2d5c0d59e56 Mon Sep 17 00:00:00 2001 From: Thomas Linford Date: Thu, 11 Nov 2021 21:24:59 +0100 Subject: [PATCH] fix(compatibility): CSI cursor next line fix (#863) Move cursor to beginning of line after moving it down. fixes #860. --- zellij-server/src/panes/grid.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zellij-server/src/panes/grid.rs b/zellij-server/src/panes/grid.rs index 064fb9c1..05ba64d1 100644 --- a/zellij-server/src/panes/grid.rs +++ b/zellij-server/src/panes/grid.rs @@ -1846,10 +1846,13 @@ impl Perform for Grid { } } } else if c == 'E' { + // Moves cursor to beginning of the line n (default 1) lines down. let count = next_param_or(1); let pad_character = EMPTY_TERMINAL_CHARACTER; self.move_cursor_down_until_edge_of_screen(count, pad_character); + self.move_cursor_to_beginning_of_line(); } else if c == 'F' { + // Moves cursor to beginning of the line n (default 1) lines up. let count = next_param_or(1); self.move_cursor_up(count); self.move_cursor_to_beginning_of_line();