python / python/cpython

New REPL: Text display corruption when resizing terminal with multi-line content

Open
#132,267 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stdlib topic-repl type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Bug report

Bug description:

When the REPL is displaying long content that wraps across multiple lines, resizing the terminal window (either making it larger or smaller) causes text to display incorrectly. The line continuation markers become misaligned, and parts of the output text overlap or display in unexpected positions.

Image

Using Ctrl+'+' to zoom in

Image

Using Ctrl+'-' to zoom out

Image

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs
  • gh-132313
  • gh-132360

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review linked PRs gh-132313 and gh-132360 first, since the issue indicates the work has moved there. Reproduce the corruption in the New REPL on Linux by resizing the terminal while long, wrapped content is displayed, then compare the behavior with those PRs. Done means continuation markers and wrapped text remain correctly aligned after resizing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.