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

awscli cloudwatch logs tail ANSI color codes not being interpreted #9607

Closed
costincaraivan opened this issue Mar 24, 2021 · 3 comments
Closed
Labels
Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase

Comments

@costincaraivan
Copy link

costincaraivan commented Mar 24, 2021

Windows Terminal version (or Windows build number)

Windows Terminal Version: 1.6.10571.0

Other Software

aws --version
aws-cli/2.1.19 Python/3.7.9 Windows/10 exe/AMD64 prompt/off

Cygwin
zsh

Steps to reproduce

  1. aws logs tail /aws/lambda/my-log-group

Expected Behavior

  1. 2021-03-24T21:23:41.766000+00:00 2021/03/24/[$LATEST] + colors should be visible in the console.

Actual Behavior

  1. ←[32m2021-03-24T21:25:48.784000+00:00←[0m ←[36m2021/03/24/[$LATEST] all over the place

For some reason Windows Terminal is not interpreting the ANSI escape codes, see the "Actual behavior".

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Mar 24, 2021
@DHowett
Copy link
Member

DHowett commented Mar 24, 2021

It seems like python is disabling ENABLE_VIRTUAL_TERMINAL_PROCESSING. The application has explicitly told us to ignore color codes.

/dup https://bugs.python.org/issue29059
/dup https://mail.python.org/pipermail/python-ideas/2016-December/044033.html

Python devs rejected doing this in 2016.

@ghost
Copy link

ghost commented Mar 24, 2021

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost ghost closed this as completed Mar 24, 2021
@ghost ghost added Resolution-External For issues that are outside this codebase and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 24, 2021
@trajano
Copy link

trajano commented May 17, 2021

AWS CLI is fixed now. It processes codes with no issues.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Tag-Fix Doesn't match tag requirements Resolution-External For issues that are outside this codebase
Projects
None yet
Development

No branches or pull requests

3 participants