Title: Moving cursor to some position exits the program with Assertion Error. · Issue #985 · bpython/bpython · GitHub
Open Graph Title: Moving cursor to some position exits the program with Assertion Error. · Issue #985 · bpython/bpython
X Title: Moving cursor to some position exits the program with Assertion Error. · Issue #985 · bpython/bpython
Description: Code: import sys sys.stdout.write("\033[1;1H") Output: Welcome to bpython! Press
Open Graph Description: Code: import sys sys.stdout.write("\033[1;1H") Output: Welcome to bpython! Press
X Description: Code: import sys sys.stdout.write("\033[1;1H") Output: Welcome to bpython! Press <F1> for help. Traceback (most recent call last): File "/home/spd/.local/bin/bpython", lin...
Opengraph URL: https://github.com/bpython/bpython/issues/985
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Moving cursor to some position exits the program with Assertion Error.","articleBody":"Code:\r\n```python\r\nimport sys\r\nsys.stdout.write(\"\\033[1;1H\")\r\n``` \r\nOutput:\r\n```console\r\nWelcome to bpython! Press \u003cF1> for help. \r\nTraceback (most recent call last):\r\n File \"/home/spd/.local/bin/bpython\", line 8, in \u003cmodule>\r\n sys.exit(main())\r\n File \"/home/spd/.local/lib/python3.10/site-packages/bpython/curtsies.py\", line 248, in main\r\n repl.mainloop(True, paste)\r\n File \"/home/spd/.local/lib/python3.10/site-packages/bpython/curtsies.py\", line 178, in mainloop\r\n self.process_event_and_paint(e)\r\n File \"/home/spd/.local/lib/python3.10/site-packages/bpython/curtsies.py\", line 151, in process_event_and_paint\r\n array, cursor_pos = self.paint()\r\n File \"/home/spd/.local/lib/python3.10/site-packages/bpython/curtsiesfrontend/repl.py\", line 1782, in paint\r\n assert cursor_row >= 0 and cursor_column >= 0, (\r\nAssertionError: (-1, 152, '\\x1b[1;1H>>> ', '', 0)\r\n```\r\nIsn't cursor movement available in the bpython shell?","author":{"url":"https://github.com/SATYADAHAL","@type":"Person","name":"SATYADAHAL"},"datePublished":"2023-04-02T10:38:00Z","url":"https://github.com/bpython/bpython/issues/985"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:21142b8a-d929-6b00-d025-79a6246a0e42 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0E8:3A73AA:2FBB92D:3C90ADE:6B01FDAC |
| html-safe-nonce | 237497280d3477ae45753cce0af8f6d1d5dfd6348f19af5ed4620d3f04e4c8f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEU4OjNBNzNBQToyRkJCOTJEOjNDOTBBREU6NkIwMUZEQUMiLCJ2aXNpdG9yX2lkIjoiMjEyNTIzOTI3NTQzNDkzMzY3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 058b8f1fd9611d2c3dc08abc28cdb8f7959e7bb7c9b323e4e20448ea2d3be817 |
| hovercard-subject-tag | issue:1650895845 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/bpython/bpython/985/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b32c49b48b5e904bd8cba789156ccedc13a7789cc0cf7e5567ceef50637ee5c/bpython/bpython/issues/985 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b32c49b48b5e904bd8cba789156ccedc13a7789cc0cf7e5567ceef50637ee5c/bpython/bpython/issues/985 |
| og:image:alt | Code: import sys sys.stdout.write("\033[1;1H") Output: Welcome to bpython! Press |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SATYADAHAL |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width