Closed apockill closed 3 years ago
Yeah - I hit similar problems when creating the AnsiArt player... The code in master should fix this. Can you try that to check there's not anything else left to fix?
I just tested it on the head of master, it works fine. I tested it with a big log of input I have that used to cause trouble. Thanks!
Describe the bug Feeding certain input into
ColouredText
raises anIndexError
.To Reproduce
The Escape symbol appears to bug out within the AnsiTerminalParser. The above code will raise this error:
I've also had this happen with other strings containing escape symbols. Here's a string that specifically caused this issue in real-world testing:
Expected behavior A ColouredText object that contains the escape symbol.
System details (please complete the following information):
I've been meaning to take a closer look at this bug, but I'm not quite sure I understand how the parser code is supposed to work. Anyways, if it's a simple issue that's great! If not, I can take a closer look at it in a couple days.