putchar is required to use print in Embedded Swift. Since there is no way to log to the Playdate console without adding a newline to the end (see here), this PR implements putchar by storing characters in a temporary buffer and only printing them once a newline is received (the default terminator to print).
If/when the C API is updated to support logging without a newline this will be improved.
putchar
is required to useprint
in Embedded Swift. Since there is no way to log to the Playdate console without adding a newline to the end (see here), this PR implementsputchar
by storing characters in a temporary buffer and only printing them once a newline is received (the default terminator toprint
).If/when the C API is updated to support logging without a newline this will be improved.
closes #41