Print is broken on Windows

I started working on a simple integrated terminal for some project. I realised that, when using anything other than the default terminator "\n", print will always start from the beginning, no matter what has been printed before. The cursor does not advance and thus previous prints are overridden.

This behaviour is not present on macOS.

I opened an issue on GitHub: