On 1/3/23, Chris Angelico <ros...@gmail.com> wrote: > > writing the FD is the same as using stdout
Except stdout may be buffered. One should probably flush the buffer before each raw write to the file descriptor. > use /dev/tty to reach for the console directly. On Windows, open "CON" (read or write), "CONIN$" (read-write), or "CONOUT$" (read-write). Or use the more explicit device paths "\\.\CON", "\\.\CONIN$", and "\\.\CONOUT$". If the process has no console, one can call WinAPI AllocConsole() or AttachConsole(process_id) to obtain one. -- https://mail.python.org/mailman/listinfo/python-list