A sketch of win32 implementation of console_stream.