(0x08) ASCII character before every print() message? #4835
Unanswered
espruino-discuss3
asked this question in
General
Replies: 1 comment
-
Posted at 2015-07-26 by @gfwilliams The issue you have is that you have the console on USB, with echo turned on. For instance you usually get a prompt at the beginning of the line like So if you print something, Espruino must delete that To avoid it, either:
Posted at 2015-07-27 by @yerpj Thank you Gordon, calling "echo(0)" is exactly what I needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-07-26 by @yerpj
Hi guys,
I am sniffing data coming from the Espruino Pico through virtual COM port (Windows, Python), and I ran into a problem. It seems that each print(X) adds the special "Backspace" character before X, and finally adds "carriage return" +"Line feed".
I wonder if this "Backspace" character is really useful for anything? I am using the serial port for long time, I never had to use this "Backspace" character. If anyone could explain why it is so important, that would be great!
I am a beginner with Python, and I had to find a trick to remove this "BS" character. I tried this one:
Why "2" characters removed? I don't really understand, I thought only had to be removed, but Espruino seems to send another useless character in front of the printed string, maybe '>' ?
If anyone has a better idea on how to keep only the useful data, do not hesitate to post it :-)
Have a nice day.
Beta Was this translation helpful? Give feedback.
All reactions