I would like to second this request (unless a way has been added in the meantime, but I can’t find anything in Inside Playdate with C). From the MicroPython interpreter I am trying to integrate in my program, I am getting output for the serial console in variably-sized, non-line-delimited chunks, and the \n
added by playdate->system->logToConsole()
totally butcher it. As long as it’s text, I could line-buffer it myself, but it could also be backspaces, terminal control escape sequences, or even arbitrary binary content. Without a write()
-like function, I don’t see any way to handle this except adding another protocol layer (as I will probably have to do for the input direction, see `msg` command sim/device differences (control codes dropped, max length) - #4 by CWalther) and running the output through a decoder on the receiving system before it can go to an actual terminal.