-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANSI escape sequences are typically used for colored text. The sequences start with a so-called CSI, followed by some "parameter bytes" before ending with a "final byte". We now handle these escape sequences by simply skipping over the bytes. This works well for escape sequences that change colors since they don't take up space and since they continue to work across any line breaks we insert. See https://en.wikipedia.org/wiki/ANSI_escape_code for details. Fixes: #140.
- Loading branch information
Showing
1 changed file
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters