Since Windows 10 build 18298 (end of 2018), it is possible to send terminal escape sequences to stdout (e.g. with print()) and have them properly interpreted as xterm terminal emulator formatting and cursor commands *if* a call to the winapi function SetConsoleMode is made to enable it. Pretty niche...