Enabling terminal sequences on Windows 10+ using Python works like so:
>>> print("Hello world" + "\x1b\x5b2F") # This doesn't do much
>>> import subprocess
>>> subprocess.run("", shell=True) # Somehow enables terminal sequences (dark magic)
>>> print("Hello world" + "\x1b\x5b2F") # Now this goes up in console
What kind of sorcery is this?
It just opens an empty process which closes immediately after. What does that have to do with reading terminal sequences? How does it work?