Add a CharacterTable format that uses Unicode Control Pictures for whitespace and non-printable ASCII characters. #250
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Unicode Control Pictures are intended to be used as graphical representations of ASCII control characters (
0x00to0x1f, and0x7f), and space (0x20).This pull request adds
--character-table control-picturesto use these characters in the character table.Unfortunately, font support for these is iffy, and some of the three-letter ones (
NUL,DEL) appear as wide characters in terminals, so I'm not sure it would make sense for this to be the default. They are also quite small and can be difficult to read at small font sizes.I also added tests the dump each character table as part of verifying a debug assertion that I added.
(Apologies for not opening an issue first; implementing it seemed simpler. I'm open to any and all changes.)