how to redirect stdout

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
jickster
Posts: 425
Joined: Thu Sep 07, 2017 8:57 pm

how to redirect stdout

Post by jickster » 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.

Scalli
Posts: 9
Joined: Tue Jun 12, 2018 5:37 am

Re: how to redirect stdout

Post by Scalli » Fri Jul 20, 2018 9:39 am

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

Post Reply