René's URL Explorer Experiment


Title: bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs. by 8vasu · Pull Request #23686 · python/cpython · GitHub

Open Graph Title: bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs. by 8vasu · Pull Request #23686 · python/cpython

X Title: bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs. by 8vasu · Pull Request #23686 · python/cpython

Description: This follows #23536. Also, see #23546, #23740. tcgetwinsize() and tcsetwinsize() are expected to appear in IEEE Std 1003.1 ("POSIX.1") issue 8 [ the upcoming version of POSIX ] as declarations in ; see https://www.austingroupbugs.net/view.php?id=1151#c3856. NetBSD already has them (thanks to user "kre"): http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcgetwinsize.c?only_with_tag=MAIN http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/termios/tcsetwinsize.c?only_with_tag=MAIN 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: add test_winsize() to "Lib/test/test_pty.py"; major revision of "Lib/pty.py", which has not happened since the beginning of the millennium. Signed-off-by: Soumendra Ganguly soumendraganguly@gmail.com https://bugs.python.org/issue41818

Open Graph Description: This follows #23536. Also, see #23546, #23740. tcgetwinsize() and tcsetwinsize() are expected to appear in IEEE Std 1003.1 ("POSIX.1") issue 8 [ the upcoming version of POSIX ] as declara...

X Description: This follows #23536. Also, see #23546, #23740. tcgetwinsize() and tcsetwinsize() are expected to appear in IEEE Std 1003.1 ("POSIX.1") issue 8 [ the upcoming version of POSIX ] as...

Opengraph URL: https://github.com/python/cpython/pull/23686

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a2496244-e190-4881-e40c-60d4aa46a78a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE5D0:B07CA:FF8EAF:1669447:696A2BDA
html-safe-nonce7cf0d4c4a5e6c21bce9b094c77900e1b582a8e9bfe8247319c06ec94fa4f155b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUQwOkIwN0NBOkZGOEVBRjoxNjY5NDQ3OjY5NkEyQkRBIiwidmlzaXRvcl9pZCI6IjY3NzMxMDk5MjUxNTI5NTk0NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac05de9c1809eebdc989029890f67a6f0d1f641337cdbfa0ae96bffc11356463b7
hovercard-subject-tagpull_request:534048089
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/23686/files
twitter:imagehttps://avatars.githubusercontent.com/u/67527439?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/67527439?s=400&v=4
og:image:altThis follows #23536. Also, see #23546, #23740. tcgetwinsize() and tcsetwinsize() are expected to appear in IEEE Std 1003.1 ("POSIX.1") issue 8 [ the upcoming version of POSIX ] as declara...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneade130928b3890d20ecf9c887468a17e88d5c9a740ea2a85c2c2162e7c58e623
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec00842167ca2e5b13e8171812965d503e925ece6
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/23686/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F23686%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F23686%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/23686/files
Reloadhttps://github.com/python/cpython/pull/23686/files
Reloadhttps://github.com/python/cpython/pull/23686/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/23686/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/23686/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
gpsheadhttps://github.com/gpshead
python:mainhttps://github.com/python/cpython/tree/main
8vasu:tty_winsizehttps://github.com/8vasu/cpython/tree/tty_winsize
Conversation 25 https://github.com/python/cpython/pull/23686
Commits 9 https://github.com/python/cpython/pull/23686/commits
Checks 0 https://github.com/python/cpython/pull/23686/checks
Files changed https://github.com/python/cpython/pull/23686/files
Please reload this pagehttps://github.com/python/cpython/pull/23686/files
bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs. https://github.com/python/cpython/pull/23686/files#top
Show all changes 9 commits https://github.com/python/cpython/pull/23686/files
78aaac7 Add termios.tcgetwinsize(), termios.tcsetwinsize(). Update docs. 8vasu Dec 8, 2020 https://github.com/python/cpython/pull/23686/commits/78aaac7ab140c034a2c8ee99fb7163f74229b0a1
0553063 Add news, clinic generated code. 8vasu Dec 8, 2020 https://github.com/python/cpython/pull/23686/commits/0553063d77dcd4ddd19406e664bff1757c9af913
0d2d35b Improve termios.tcsetwinsize(). 8vasu Dec 10, 2020 https://github.com/python/cpython/pull/23686/commits/0d2d35bd8e5d094881505d5b68f460831d113bac
628b7dc Add TIOCGSIZE support to termios.tcgetwinsize() 8vasu Dec 14, 2020 https://github.com/python/cpython/pull/23686/commits/628b7dcc32efe8d1bc5a52bf167547f4092412a0
6ef8a29 Add TIOCSSIZE support to termios.tcsetwinsize() 8vasu Dec 14, 2020 https://github.com/python/cpython/pull/23686/commits/6ef8a2921c65f30b9e11f414565e3d27bbfbe8c3
91374ea The SunOS struct ttysize had fields of type "int"; update termios.tcg… 8vasu Dec 15, 2020 https://github.com/python/cpython/pull/23686/commits/91374ea95146bf80edacfa743a3f7bc8c4d6e76f
bb0b2b1 termios.tcgetwinsize() and termios.tcsetwinsize() should return/accep… 8vasu Aug 14, 2021 https://github.com/python/cpython/pull/23686/commits/bb0b2b16daf01650f001295e470ec28d28a78470
eb0be09 Refactor tcsetwinsize to share common code and accept any two item se… gpshead Aug 27, 2021 https://github.com/python/cpython/pull/23686/commits/eb0be0934ecba171b86fdbc72c0689936a3eb54f
5ab0d4c parenthesis on my if statements :) gpshead Aug 27, 2021 https://github.com/python/cpython/pull/23686/commits/5ab0d4c804aa79b12185a9609f094fc17bd4cdba
Clear filters https://github.com/python/cpython/pull/23686/files
Please reload this pagehttps://github.com/python/cpython/pull/23686/files
Please reload this pagehttps://github.com/python/cpython/pull/23686/files
termios.rst https://github.com/python/cpython/pull/23686/files#diff-982dfc326e90c77ed6247a8055dc802b97b30fb61af40cf6673affeb4e2bd7cc
2020-12-08-01-08-58.bpo-41818.zO8vV7.rst https://github.com/python/cpython/pull/23686/files#diff-edf52b62beaf6ccbe2d97135f9053c390693c58635768417482a356a6dd48870
termios.c.h https://github.com/python/cpython/pull/23686/files#diff-d70591faa64a14f448d993cfbf7432d27fcb55a41ed455f5d443c8d59fdc7855
termios.c https://github.com/python/cpython/pull/23686/files#diff-099ac66bc194bfc258e95fcba2e3ed5528f83adb690fe7e0ef831aa6407eb32c
Doc/library/termios.rsthttps://github.com/python/cpython/pull/23686/files#diff-982dfc326e90c77ed6247a8055dc802b97b30fb61af40cf6673affeb4e2bd7cc
View file https://github.com/8vasu/cpython/blob/5ab0d4c804aa79b12185a9609f094fc17bd4cdba/Doc/library/termios.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/23686/{{ revealButtonHref }}
https://github.com/python/cpython/pull/23686/files#diff-982dfc326e90c77ed6247a8055dc802b97b30fb61af40cf6673affeb4e2bd7cc
gpsheadhttps://github.com/gpshead
Aug 27, 2021https://github.com/python/cpython/pull/23686/files#r697117558
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/23686/files
8vasuhttps://github.com/8vasu
Aug 28, 2021https://github.com/python/cpython/pull/23686/files#r697790264
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@gpsheadhttps://github.com/gpshead
Please reload this pagehttps://github.com/python/cpython/pull/23686/files
https://github.com/python/cpython/pull/23686/files#diff-982dfc326e90c77ed6247a8055dc802b97b30fb61af40cf6673affeb4e2bd7cc
Misc/NEWS.d/next/Library/2020-12-08-01-08-58.bpo-41818.zO8vV7.rsthttps://github.com/python/cpython/pull/23686/files#diff-edf52b62beaf6ccbe2d97135f9053c390693c58635768417482a356a6dd48870
View file https://github.com/8vasu/cpython/blob/5ab0d4c804aa79b12185a9609f094fc17bd4cdba/Misc/NEWS.d/next/Library/2020-12-08-01-08-58.bpo-41818.zO8vV7.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/23686/{{ revealButtonHref }}
Modules/clinic/termios.c.hhttps://github.com/python/cpython/pull/23686/files#diff-d70591faa64a14f448d993cfbf7432d27fcb55a41ed455f5d443c8d59fdc7855
View file https://github.com/8vasu/cpython/blob/5ab0d4c804aa79b12185a9609f094fc17bd4cdba/Modules/clinic/termios.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/23686/files
Modules/termios.chttps://github.com/python/cpython/pull/23686/files#diff-099ac66bc194bfc258e95fcba2e3ed5528f83adb690fe7e0ef831aa6407eb32c
View file https://github.com/8vasu/cpython/blob/5ab0d4c804aa79b12185a9609f094fc17bd4cdba/Modules/termios.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/23686/{{ revealButtonHref }}
https://github.com/python/cpython/pull/23686/files#diff-099ac66bc194bfc258e95fcba2e3ed5528f83adb690fe7e0ef831aa6407eb32c
Please reload this pagehttps://github.com/python/cpython/pull/23686/files
https://github.com/python/cpython/pull/23686/files#diff-099ac66bc194bfc258e95fcba2e3ed5528f83adb690fe7e0ef831aa6407eb32c
https://github.com/python/cpython/pull/23686/files#diff-099ac66bc194bfc258e95fcba2e3ed5528f83adb690fe7e0ef831aa6407eb32c
https://github.com/python/cpython/pull/23686/files#diff-099ac66bc194bfc258e95fcba2e3ed5528f83adb690fe7e0ef831aa6407eb32c
https://github.com/python/cpython/pull/23686/files#diff-099ac66bc194bfc258e95fcba2e3ed5528f83adb690fe7e0ef831aa6407eb32c
https://github.com/python/cpython/pull/23686/files#diff-099ac66bc194bfc258e95fcba2e3ed5528f83adb690fe7e0ef831aa6407eb32c
https://github.com/python/cpython/pull/23686/files#diff-099ac66bc194bfc258e95fcba2e3ed5528f83adb690fe7e0ef831aa6407eb32c
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.