-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Text spam by program or via copy-paste in Python deletes text previously on screen #11334
Comments
That's so weird. To be clear, you're using the Windows python install here, not the WSL one? (EDIT: finding the start of the gif, this does seem to be true) This looks like a scrolling margins bug, but if this is the Windows python then I wouldn't expect that at all. Nor would I expect this to have regressed recently. I also can't get this to repro in python Does this repro when using I'm grasping at straws here trying to find something that might be relevant. |
I'll also expand the trigger behaviour set by adding a file. Making this, I notice that simply typing in the code and hitting Enter also results in line deletion. Running a .py file, I can see that it must be a problem with the interactive console, as all behaviour is normal (been troubleshooting a CLI game made on C++, so other languages should be ok too). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Normally Python's REPL shell is a simple consumer of I see buggy behavior only if the third-party pyreadline package is installed. Some packages might depend on it. The readline module gets imported when the interpreter executes in interactive mode, unless isolated mode is enabled. Check whether the following is true: |
Wow okay sorry for letting this linger. We never saw the conclusion here! This should totally be reported downstream, probably on Thanks for the help! |
Windows Terminal version (or Windows build number)
Windows Terminal Version: 1.10.2383.0
Other Software
Python 3.9.2
Not an issue using Python with old
cmd
, orwsl
(v2), orwsl
(v2) in the Terminal(wsl : Kernel version: 5.10.16, Default Distribution: Ubuntu-20.04)
Steps to reproduce
input("input : ")
, etc.Expected Behavior
The text simply scrolls down with the new input while the text previously on display is still accessible by scrolling upwards.
Actual Behavior
Previous text gets deleted at a boundary defined by where the top of the screen was when the copy-paste/Enter spam was initiated.
To illustrate :
input("")
+ multi-line copy-pasteThe text was updated successfully, but these errors were encountered: