Title: bpo-41818: Make additions to the tty module by 8vasu · Pull Request #23546 · python/cpython · GitHub
Open Graph Title: bpo-41818: Make additions to the tty module by 8vasu · Pull Request #23546 · python/cpython
X Title: bpo-41818: Make additions to the tty module by 8vasu · Pull Request #23546 · python/cpython
Description: This follows #23536. Also, see #23686, #23740. Add cfmakeraw(), cfmakeecho(), and cfmakecbreak(); make setraw() and setcbreak() return saved termios attributes to avoid extra tcgetattr() calls. 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. Notes List of all POSIX.1-2017 input mode flags - https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html#tag_13_72_03_02. List of all POSIX.1-2017 local mode flags - https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html#tag_13_72_03_06. Naming justification for the functions: https://man7.org/linux/man-pages/man3/cfmakeraw.3.html Note that cfmakeraw() is not POSIX compliant; it is available on the BSDs and in glibc. However, POSIX has functions with similar names; for example, consider cfgetispeed(). Please see https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html. test_winch() will be resubmitted as a part of a later pull request. #23686 replaces class winsize. #23740 replaces tty.login_tty(). Signed-off-by: Soumendra Ganguly soumendraganguly@gmail.com https://bugs.python.org/issue41818
Open Graph Description: This follows #23536. Also, see #23686, #23740. Add cfmakeraw(), cfmakeecho(), and cfmakecbreak(); make setraw() and setcbreak() return saved termios attributes to avoid extra tcgetattr() calls. Pos...
X Description: This follows #23536. Also, see #23686, #23740. Add cfmakeraw(), cfmakeecho(), and cfmakecbreak(); make setraw() and setcbreak() return saved termios attributes to avoid extra tcgetattr() calls. Pos...
Opengraph URL: https://github.com/python/cpython/pull/23546
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:4a56d466-a3e0-8641-0a7f-5dfea82795ac |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9686:220088:F8D36F:158B337:696A9222 |
| html-safe-nonce | 4661d6a66da62df6be17de532c459cd3fb6cc1fa1f01cc51d0139be4c2ea55bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Njg2OjIyMDA4ODpGOEQzNkY6MTU4QjMzNzo2OTZBOTIyMiIsInZpc2l0b3JfaWQiOiI0MzI4NzU2ODc5MjI4MDQ3OTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4557f1fe5cabcb3315f487eb7d083547290de1fceba1f6a3a6a70f7cce838957 |
| hovercard-subject-tag | pull_request:529027141 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/23546/checks |
| twitter:image | https://avatars.githubusercontent.com/u/67527439?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/67527439?s=400&v=4 |
| og:image:alt | This follows #23536. Also, see #23686, #23740. Add cfmakeraw(), cfmakeecho(), and cfmakecbreak(); make setraw() and setcbreak() return saved termios attributes to avoid extra tcgetattr() calls. Pos... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width