Skip to content
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

Wrong printed/parsed characters on Terminal #15070

Closed
D3vil0p3r opened this issue Mar 30, 2023 · 6 comments
Closed

Wrong printed/parsed characters on Terminal #15070

D3vil0p3r opened this issue Mar 30, 2023 · 6 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@D3vil0p3r
Copy link

Windows Terminal version

1.16.10262.0

Windows build number

Microsoft Windows NT 10.0.22621.0

Other Software

python 3.10.10

Steps to reproduce

By using Windows Terminal with WSL, the \001 and \002 Python characters are not parsed correctly.

Open WSL container of Ubuntu or Arch Linux. Run:

if Ubuntu:

python3

if Arch:

python

Once Python is run, type the following:

MAIN = '\001\033[38;5;85m\002'
END = '\001\033[0m\002'
INFO = f'{MAIN}Info{END}'
print(f'\r[{INFO}] Core server started on')

The result will be:
image

The reason of using \001 and \002 when colors should be used is described in https://bugs.python.org/msg208948

This issue seems to appear only on Windows Terminal with and without WSL (with different displaying characters output).

Issue opened here as agreed in microsoft/WSL#9870

Expected Behavior

The result should be:

[Info] Core server started on

Note that the real output has Info string colored.

Actual Behavior

The wrong result is:
image

@D3vil0p3r D3vil0p3r added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 30, 2023
@j4james
Copy link
Collaborator

j4james commented Mar 30, 2023

Thanks for the detailed report, but we do already have an issue for this. It's being tracked in #10786.

@D3vil0p3r
Copy link
Author

Thanks for the detailed report, but we do already have an issue for this. It's being tracked in #10786.

Thank you for the answer. I hope it will fix soon. The linked issue was opened on July 2021.

@zadjii-msft
Copy link
Member

Thanks!

/dup #10786

@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 30, 2023
@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 30, 2023
@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants