Is this a known problem? This happens, for example, when I up-arrow to a previous command, and attempt to edit it. I attempt to delete a word and it shows that it’s gone but when I hit Enter the interpreter receives something other than what’s visible on the console, which means I don’t get WYSIWYG.
Thanks for reporting this issue.
I’ll defer to more knowledgeable and experienced users of the micropython console to address it. Someone should be along, soon.
We have been seeing this behavior occasionally. We are looking at the library we are using for the terminal to see if they have a fix, or if we should be looking at another library in the future. We would be interested if it is happening all the time for you, or just when things seem to get out of sync.
It happens every time. If I type
0123456789
on the command line, then hit the backspace key, it often fails to delete the “9” and instead I end up with a command line showing:
012345678[K
It happens at random, but when I just tried exactly this, the addition of [K happened multiple times, resulting in
0123456[
At which point it won’t backspace anymore, because the line buffer actually is empty. It’s the display that is corrupted.
I’m using the included USB cable, and am running an up-to-date version of Chrome, Version 120.0.6099.110 (Official Build) (64-bit)
Over the holidays I was able to look at this more and have found a solution. We will be making a release soon to fix this.
We have released XRPCode version 1.0.2 If your browser does a lot of cacheing you may need to hold down the shift key while reloading to get the latest. This should fix the editing problems. Please let us know how it works for you.