Title: Disable terminal default ctrl-s behavior so it can be used for save. by thomasballinger · Pull Request #933 · bpython/bpython · GitHub
Open Graph Title: Disable terminal default ctrl-s behavior so it can be used for save. by thomasballinger · Pull Request #933 · bpython/bpython
X Title: Disable terminal default ctrl-s behavior so it can be used for save. by thomasballinger · Pull Request #933 · bpython/bpython
Description: Solution for #638 Terminal emulators typically "freeze" the terminal on ctrl-s and continue on ctrl-q. You can run stty -ixon in your terminal or add it to your .bashrc or similar to disable this behavior on ctrl-s. If not disabled, users of bpython can't use ctrl-s to save their session. I think we should do the equivalent of this for users automatically. I would guess that more users are annoyed by it but never report than users that want to use scroll control in bpython. I don't think this default behavior of ctrl-s/ctrl-q is very useful in bpython, especially since our output is much slower than python. However ptpython has a similar issue that it also chooses not to automatically fix. Hitting F7 is a workaround that opens the current session in a text editor, from which you can save it with a new name. Saving without changing the name saves to a temporary file and re-executes the modified session. Note that the say that the way Curtsies implements this behavior is not by turning off this terminal feature (-ixon and -ixoff) but rather by making ctrl-s and ctrl-q no longer do these things.
Open Graph Description: Solution for #638 Terminal emulators typically "freeze" the terminal on ctrl-s and continue on ctrl-q. You can run stty -ixon in your terminal or add it to your .bashrc or similar to disa...
X Description: Solution for #638 Terminal emulators typically "freeze" the terminal on ctrl-s and continue on ctrl-q. You can run stty -ixon in your terminal or add it to your .bashrc or similar...
Opengraph URL: https://github.com/bpython/bpython/pull/933
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:81c7ac7c-831a-b9cf-d364-b463330b0119 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8D38:317EEC:DCEF0E:1301312:6968A6FA |
| html-safe-nonce | fd7d12eea420237a78dd13a48ae2632de17e903f379b285aebb52daa0cc3ba16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDM4OjMxN0VFQzpEQ0VGMEU6MTMwMTMxMjo2OTY4QTZGQSIsInZpc2l0b3JfaWQiOiI4NTg3Mjg3ODcxNzExOTEzNzIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f277e17cd22aa56bbbd22829e7e2a0cf48cafc38bc8a0a3f35d3b6bb443a58cc |
| hovercard-subject-tag | pull_request:765646739 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/bpython/bpython/pull/933/files |
| twitter:image | https://avatars.githubusercontent.com/u/458879?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/458879?s=400&v=4 |
| og:image:alt | Solution for #638 Terminal emulators typically "freeze" the terminal on ctrl-s and continue on ctrl-q. You can run stty -ixon in your terminal or add it to your .bashrc or similar to disa... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdc7c66bd36a6c12eb8e771e806db863266e573fc299e77f27505a768d4f8a98 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3223a6503d318917691422cdadfbe16cd8fb21e5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width