Page 1 of 1

how to redirect stdout

Posted: Tue Jul 10, 2018 7:15 pm
by jickster
This was a question in another thread
LisaM wrote:
Wed Nov 08, 2017 6:05 pm
But... Help("modules") does show a list of frozen modules so the info is available in micropython (at least on esp32). Is there a way of redirecting the help output into a string for parsing (again on a esp32)?
but it definitely is a thread itself.

Re: how to redirect stdout

Posted: Fri Jul 20, 2018 9:39 am
by Scalli
Hey,
after this docu here:
http://docs.micropython.org/en/latest/p ... t-possible
there is no way to do it in Python.
But you maybe change it somewhere around around the "micropython\lib\utils\sys_stdio_mphal.c"
EDIT:
I think its better to change it in "micropython\py\builtinhelp.c" because you can print anythong else the normal way. sorry a little bit to fast