]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). (GH-23686)
authorSoumendra Ganguly <67527439+8vasu@users.noreply.github.com>
Fri, 27 Aug 2021 02:56:26 +0000 (21:56 -0500)
committerGitHub <noreply@github.com>
Fri, 27 Aug 2021 02:56:26 +0000 (19:56 -0700)
commitae224bb566301d3602e9b090e37c1dcf5a48c914
treec309b7ead3677cb719de7b97b85715956a3e798c
parent969ae7f7356584e30667b4e490ffa2ffa1810429
bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). (GH-23686)

* Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs.
* Add TIOCGSIZE support to termios.tcgetwinsize()
* Add TIOCSSIZE support to termios.tcsetwinsize()

Authored-by: Soumendra Ganguly <soumendraganguly@gmail.com>
* termios.tcgetwinsize() and termios.tcsetwinsize() should return/accept two-item tuples instead of lists.
* Refactor tcsetwinsize to share common code and accept any two item sequence, with overflow checking.

Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
Doc/library/termios.rst
Misc/NEWS.d/next/Library/2020-12-08-01-08-58.bpo-41818.zO8vV7.rst [new file with mode: 0644]
Modules/clinic/termios.c.h
Modules/termios.c