[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Python REPL doesn't work on Windows over remote powershell session (winrm)


On Sun, 26 Aug 2018 at 12:16, David Bolen <db3l.net at gmail.com> wrote:
> I'm not sure if there's any better way for Python to detect a remote
> shell as being interactive under Windows that would cover such cases.
> Perhaps some of the newer pty changes I read Microsoft is making might
> help, assuming it flows through to the isatty() test.

Based on https://blogs.msdn.microsoft.com/commandline/2018/08/02/windows-command-line-introducing-the-windows-pseudo-console-conpty/,
that seems plausible to me, since they're adding a true pseudo-tty
system, and mostly modeling it's behaviour on the *nix one.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia