Line with multiple whitepaces in Python REPL gets written over #8000

Closed
opened 2026-01-31 01:18:10 +00:00 by claunia · 2 comments
Owner

Originally created by @vangorden on GitHub (May 7, 2020).

Environment

Windows build number: 10.0.19624.0
Windows Terminal version (if applicable): 0.11.1251.0 (this issue existed in previous versions as well)

Any other software?
WSL
Python

Steps to reproduce

Open a Python REPL from within WSL by entering python.
Enter a character followed by a space and another character followed by a space, then left arrow back to beginning of line. >>> s s s
Now enter some new characters.

Expected behavior

New characters should be inserted between existing characters pushing those that come after forward.

Actual behavior

Existing characters are written over by new characters.

Observations

I've only observed this behavior through WSL, it does not seem to be present in Powershell so this may be an issue with WSL.
It appears to be related to having more than one space character in the line.

Originally created by @vangorden on GitHub (May 7, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.19624.0 Windows Terminal version (if applicable): 0.11.1251.0 (this issue existed in previous versions as well) Any other software? WSL Python ``` # Steps to reproduce Open a Python REPL from within WSL by entering `python`. Enter a character followed by a space and another character followed by a space, then left arrow back to beginning of line. `>>> s s s` Now enter some new characters. # Expected behavior New characters should be inserted between existing characters pushing those that come after forward. # Actual behavior Existing characters are written over by new characters. # Observations I've only observed this behavior through WSL, it does not seem to be present in Powershell so this may be an issue with WSL. It appears to be related to having more than one space character in the line.
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 01:18:11 +00:00
Author
Owner

@zadjii-msft commented on GitHub (May 7, 2020):

Hmm, curious, I can't seem to repro this.

image

Maybe there's something else about your WSL environment that's causing this. Which version of python are you running? Which linux distro? What shell are you using, and have you done anything to configure that shell?

What's the output of stty -a both straight from the shell, and from the python REPL?
image

Does this repro in the vintage console window, or only in Windows Terminal?

@zadjii-msft commented on GitHub (May 7, 2020): Hmm, curious, I can't seem to repro this. ![image](https://user-images.githubusercontent.com/18356694/81319657-95ea4680-9055-11ea-8833-300d3510d017.png) Maybe there's something else about your WSL environment that's causing this. Which version of `python` are you running? Which linux distro? What shell are you using, and have you done anything to configure that shell? What's the output of `stty -a` both straight from the shell, and from the python REPL? ![image](https://user-images.githubusercontent.com/18356694/81319953-0c874400-9056-11ea-981f-7f2828f18d9e.png) Does this repro in the vintage console window, or only in Windows Terminal?
Author
Owner

@vangorden commented on GitHub (May 7, 2020):

Thanks for looking at this!

Linux Distro: Ubuntu 20.04 LTS
Shell: zsh
Python versions: 2.7.17 and 3.7.6

image

Actually I think I just found the culprit in my .zshrc
export TERM=xterm-color

Removing this has resolved the issue for me, so I'll go ahead and close this.

@vangorden commented on GitHub (May 7, 2020): Thanks for looking at this! Linux Distro: Ubuntu 20.04 LTS Shell: zsh Python versions: 2.7.17 and 3.7.6 ![image](https://user-images.githubusercontent.com/8635099/81321709-caef9c80-9047-11ea-9600-254a07b2618f.png) Actually I think I just found the culprit in my .zshrc `export TERM=xterm-color` Removing this has resolved the issue for me, so I'll go ahead and close this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8000