From 004994d695257a0546107413f33404c05cbeacca Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer <2492783+JanDeDobbeleer@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:06:15 +0100 Subject: [PATCH] fix(ansi): do not end reverse ANSI this will break rendering but can help assume my theory --- src/ansi/ansi_writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansi/ansi_writer.go b/src/ansi/ansi_writer.go index eb2f0181..a5925571 100644 --- a/src/ansi/ansi_writer.go +++ b/src/ansi/ansi_writer.go @@ -57,7 +57,7 @@ const ( AnchorRegex = `^(?P<(?P[^,>]+)?,?(?P[^>]+)?>)` colorise = "\x1b[%sm" transparent = "\x1b[0m\x1b[%s;49m\x1b[7m" - transparentEnd = "\x1b[27m" + transparentEnd = "" backgroundEnd = "\x1b[49m" AnsiRegex = "[\u001B\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"