This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
Date 2020-09-06.23:53:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599436405.8.0.963583915505.issue41729@roundup.psfhosted.org>
In-reply-to
Content
> ÄÄÄÄÄÄÄÄÄÄ^Z^Z^Z^Z^Z^Z^Z^Z^Z^Z

I don't know why Steve made write_input (PC/_testconsole.c) set wRepeatCount in each KeyEvent record to 10. Maybe it was a typo. Previous console implementations have ignored the repeat count, so it wasn't an issue.

test_ctrl_z checks (1) that reading a non-ASCII character works when split across two reads and (2) that Ctrl+Z (0x1A) as the first character of a read is handled as EOF, regardless of where it occurs on the line as long as it's the first character in the buffer. The latter has to be tested because _WindowsConsoleIO has to manually implement the way that WinAPI ReadFile handles Ctrl+Z, a behavior that WinAPI ReadConsoleW does not itself implement.
History
Date User Action Args
2020-09-06 23:53:25eryksunsetrecipients: + eryksun, terry.reedy, paul.moore, tim.golden, zach.ware, steve.dower
2020-09-06 23:53:25eryksunsetmessageid: <1599436405.8.0.963583915505.issue41729@roundup.psfhosted.org>
2020-09-06 23:53:25eryksunlinkissue41729 messages
2020-09-06 23:53:25eryksuncreate