gh-43414: os.get_terminal_size() now uses the actual file descriptor on Windows instead of mapping to standard handles (#93203)

This commit is contained in:
Raghunandan Bhat 2022-07-28 18:48:33 -04:00 committed by GitHub
parent 390847922c
commit edb72047f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 15 deletions

View file

@ -0,0 +1,2 @@
:func:`os.get_terminal_size` now attempts to read the size from any provided
handle, rather than only supporting file descriptors 0, 1 and 2.