Content-Length: 244439 | pFad | http://github.com/python/cpython/issues/134643

13 New REPL: Prompt overwrites previous output on line wrap · Issue #134643 · python/cpython · GitHub
Skip to content

New REPL: Prompt overwrites previous output on line wrap #134643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ImFeH2 opened this issue May 25, 2025 · 2 comments
Open

New REPL: Prompt overwrites previous output on line wrap #134643

ImFeH2 opened this issue May 25, 2025 · 2 comments
Labels
stdlib Python modules in the Lib dir topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error

Comments

@ImFeH2
Copy link
Contributor

ImFeH2 commented May 25, 2025

Bug report

Bug description:

When output doesn't end with newline and the next prompt appears mid-line, typing input that causes line wrapping makes the prompt overwrite previous output.

Steps to Reproduce

Image

Then type enough characters, the content before the prompt will be overwritten.

Image

Additionally, pasting causes display formatting errors

Image

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

@ImFeH2 ImFeH2 added the type-bug An unexpected behavior, bug, or error label May 25, 2025
@ImFeH2
Copy link
Contributor Author

ImFeH2 commented May 25, 2025

I think this issue occurs because the REPL assumes each line has a maximum width equal to the terminal width.
Possible solutions could be supporting variable line widths or preventing mid-line prompts.

@asterisk-ragavan
Copy link

while trying to recreate the bug found another weird bug in windows terminal (python V3.13.3)

STOUT's last line is prented in next prompt area (tried with larger number and it always happens only with the last line)

20250525-0620-56.8910328.mp4

@picnixz picnixz added stdlib Python modules in the Lib dir topic-repl Related to the interactive shell labels May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/cpython/issues/134643

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy