fix REPL terminal garbled characters upon code.py finished #6077
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.
This PR is to resolve the garbled characters observed in:
#6076 (comment)
Test code for standard use of the REPL:
Test code for resizing the REPL. I just see one minor weirdness when using the resized REPL and then code.py finishes running. If there is no serial connection, whenever the code is done running and it resets back to the REPL, the "Code is done running." is not shown. There is just a black screen with Blinka.
If there is a serial connection, it shows the next lines "Autoreload is on....". To avoid this, the last line of your code you can add
display.show(None)
. Alternately, we could rearrange the sequence of when "Code is done running." is printed so that it occurs after the REPL is reset.