From d096051f807441d8a55d44ae55ee1f9463d6d808 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Fri, 12 Jan 2024 14:16:45 +0100 Subject: fixme: add note for future self about rendering bug --- lib/terminal.ml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/terminal.ml') diff --git a/lib/terminal.ml b/lib/terminal.ml index 408f7a8..c8312b6 100644 --- a/lib/terminal.ml +++ b/lib/terminal.ml @@ -49,6 +49,12 @@ let write_seq = in handle_unix_error syscall +(* FIXME there is currently a bug that clears the last character of a + long line (when a "clear_to_eol" escape sequence wouldn't be needed). + This is because the escape sequence deletes everything *from the + cursor* onwards, which includes. This will most likely get solved + when we move away from this to implement something like a "right + column" *) let write_lines (lines : char Sequence.t Sequence.t) = let crnl = Sequence.of_list [ '\r'; '\n' ] in let clear s = Sequence.append s clear_to_eol in -- cgit v1.2.3