GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Moving cursor to some position exits the program with Assertion Error. · Issue #985 · bpython/bpython

Moving cursor to some position exits the program with Assertion Error. #985

New issue
Copy link
New issue
Copy link
Open
Open
Moving cursor to some position exits the program with Assertion Error.#985
Copy link
Labels
frontend-limitations

Description

@SATYADAHAL
SATYADAHAL
opened on Apr 2, 2023
Issue body actions

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", line 8, in <module>
    sys.exit(main())
  File "/home/spd/.local/lib/python3.10/site-packages/bpython/curtsies.py", line 248, in main
    repl.mainloop(True, paste)
  File "/home/spd/.local/lib/python3.10/site-packages/bpython/curtsies.py", line 178, in mainloop
    self.process_event_and_paint(e)
  File "/home/spd/.local/lib/python3.10/site-packages/bpython/curtsies.py", line 151, in process_event_and_paint
    array, cursor_pos = self.paint()
  File "/home/spd/.local/lib/python3.10/site-packages/bpython/curtsiesfrontend/repl.py", line 1782, in paint
    assert cursor_row >= 0 and cursor_column >= 0, (
AssertionError: (-1, 152, '\x1b[1;1H>>> ', '', 0)

Isn't cursor movement available in the bpython shell?

Activity

  1. sebastinas
    added
    frontend-limitations
    on Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontend-limitations

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.