Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
termio.py: Changed the rate limiter to only engage after a timeout of…
… 5 seconds. The previous two-second timeout was too short for embedded/slower systems. This will eventually be a tunable parameter. termio.py: Changed the logic inside of term_write() to ensure that all characters are stored as bytes instead of a mix/match of Unicode/bytes. This was to work around some issues with Python 3 support. termio.py: Inline images are working again as a result of the aforementioned change. Apparently that feature broke when I made a change to termio ~1.5 weeks ago to get Python 3 working again. terminal.py: handle_special has been modified to be more friendly with Python 3. As a bonus this change seems to have sped it up a tiny bit. terminal.py: Terminal.write() was checking for a UnicodeEncodeError when it should've been checking for a UnicodeDecodeError. terminal.py: Fixed an issue with Unicode diacritics... Sometimes combining characters like ̴ (special form of tilda) would still result in two characters after being run through unicodedata.normalize(). This would result in a TypeError when trying to add the characters to the screen array since it was trying to add two characters to a position that can only accept one. The diacritic logic now gracefully handles this situation by writing each character to the screen array individually. logviewer.py: After running through some test scenarios I noticed that Unicode characters weren't showing up properly when playing back logs in real-time. I fixed this (missing a .decode() in two spots). test_term_renditions.py: Added a short delay between line outputs in order to reduce the CPU consumption and prevent the rate limiter from truncating the output.
- Loading branch information
Showing
4 changed files
with
61 additions
and
36 deletions.
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
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
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
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