Closed theLogicJB closed 3 years ago
Thats just a problem with your terminal emulater interpreting line endings wrong / different and not a problem with the code itself
@chriss0612 Which terminal emulator do you know works? I tried Minicom or dterm inside Alacritty.
@theLogicJB i used picocom
picocom -b
should work i think, if not you can try with the --imap argument.
Even with picocom
you need to remap line feed to carriage return with --imap lfcr
. This means it is the third terminal emulator I try that needs special configuration to print the serial output in a readable way.
Wouldn't it be more user friendly to change it in the code instead of every user figuring it out on their own?
@theLogicJB I'm not sure what you mean by change it in the code, the serial peripheral simply writes the bytes to tell it to out of the port. Like @chriss0612 mentioned, this is a display issue, I myself use pythons mterm script inside of alacritty and that works great. @kelnos has also just released esp-monitor which may be of use to you.
When printing multiple lines like this
I get this output
Ending each string with
\r
solves the problem but shouldn't it be part of the library or am I missing something?Is this related to #17?