[issue41849] Support reading long lines with io._WindowsConsoleIO

2020-09-24 Thread Eryk Sun
Eryk Sun added the comment: > The biggest risk here is that we have to emulate GNU readline for > compatibility, which severely limits the data that can be passed > through, and also forces multiple encoding/decoding passes. I'm not suggesting to disable the console's line-input and echo-in

[issue41849] Support reading long lines with io._WindowsConsoleIO

2020-09-24 Thread Steve Dower
Steve Dower added the comment: I'm in favour of this change in principle, but would want to look at the PR closely. The biggest risk here is that we have to emulate GNU readline for compatibility, which severely limits the data that can be passed through, and also forces multiple encoding/d

[issue41849] Support reading long lines with io._WindowsConsoleIO

2020-09-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue41849] Support reading long lines with io._WindowsConsoleIO

2020-09-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue41849] Support reading long lines with io._WindowsConsoleIO

2020-09-23 Thread Eryk Sun
New submission from Eryk Sun : io._WindowsConsoleIO reads from the console via ReadConsoleW in line-input mode, which limits the line length to the maximum of 256 and the size of the client buffer, including the trailing CRLF (or just CR if processed-input mode is disabled). Text that's typed