Page 1 of 1
how to redirect stdout
Posted: Tue Jul 10, 2018 7:15 pm
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
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"
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