ConPTY
ConPTY, short for Windows Pseudo Console, is a Windows API introduced by Microsoft to enable modern terminal emulation by providing a pseudo terminal that connects a host process to a child process running a console application. It is designed to give terminal applications a stable, high-level interface for handling input, output, and sizing, while allowing the host to render the terminal UI.
ConPTY was released as part of Windows 10 and has been used to support contemporary terminal experiences
In operation, a host creates a pseudo console object and sets its initial screen size. It then
ConPTY has been integral to modern Windows terminals, such as Windows Terminal, and is used to support