add win32 support
Adds support for win32
* call getStdOut/In at runtime instead of compile time
* only include sys/ioctl.h if we're not on windows
* use GetConsoleScreenBufferInfo instead of TIOCGWINSZ on windows
Tested that it works on VS debug console, Alacrity and Ghostty.
Only renders text in cmd.exe and powershell.exe.