bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs.#23686
Merged
gpshead merged 9 commits intopython:mainfrom Aug 27, 2021
Merged
bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs.#23686gpshead merged 9 commits intopython:mainfrom
gpshead merged 9 commits intopython:mainfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This follows #23536. Also, see #23546, #23740.
tcgetwinsize()andtcsetwinsize()are expected to appear in IEEE Std 1003.1 ("POSIX.1") issue 8 [ the upcoming version of POSIX ] as declarations in<termios.h>; see https://www.austingroupbugs.net/view.php?id=1151#c3856.NetBSD already has them (thanks to user "kre"):
Update: musl libc also has these functions.
Update2: The patches that I had submitted to add tcgetwinsize() and tcsetwinsize() to the FreeBSD libc have been merged. I am still working on getting them included in glibc.
When POSIX.1 issue 8 is released,
termios.tcgetwinsize(),termios.tcsetwinsize()can be updated to utilize the native versions.Post #23686, #23546, #23740 goals:
test_winsize()to "Lib/test/test_pty.py";Signed-off-by: Soumendra Ganguly soumendraganguly@gmail.com
https://bugs.python.org/issue41818