- The script itself is only good for Python 2.7+ so I have now added a check for that prior to running.
- The escape code [2J (\2J) I was using to clear the console was the reason the ANSI would not reset properly between renders and therefore the reason for the continued corruption once the first ANSI set the console mode. I have now changed that to the reset escape code [033c (\033c) which at least in testing (under centOS) appears so far to have corrected the issues.
- There was an exception thrown reading some of the ANSI, not exactly sure which yet but I have added a try/except in place to capture and report on it if debugging is turned on.
http://www.mameau.com/pyans-update/
Videos:
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.