Deprecated: PTYs are natively supported in Windows 10 October 2018 Update (version 1809) and above, switch to https://github.com/UserExistsError/conpty and see this blog post for more details: https://devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/