Open ErichDonGubler opened 6 years ago
Oooh, Python 3.6.5 just had to handle this particular problem by switching their Windows console implementation to use UTF-8: https://github.com/python/cpython/blob/master/Parser/myreadline.c#L102
We can probably just use this buffering algorithm wholesale -- perhaps make a crate for it, to save other people time. :)
Right now we're serving the case illustrated in the
async
example, where thebytes
method and iterator is used to get everything from the current TTY. I have some doubt about whether all iterator methods will actually work -- we should test with otherRead
methods too, since it's the interface exposed inget_tty
.