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

Closed
opened 2026-01-31 03:35:37 +00:00 by claunia · 3 comments
Owner

Originally created by @costincaraivan on GitHub (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".

Originally created by @costincaraivan on GitHub (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 2. `2021-03-24T21:23:41.766000+00:00 2021/03/24/[$LATEST]` + colors should be visible in the console. ### Actual Behavior 2. `←[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".
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 03:35:37 +00:00
Author
Owner

@DHowett commented on GitHub (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.

@DHowett commented on GitHub (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.
Author
Owner

@ghost commented on GitHub (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 commented on GitHub (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!
Author
Owner

@trajano commented on GitHub (May 17, 2021):

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

@trajano commented on GitHub (May 17, 2021): AWS CLI is fixed now. It processes codes with no issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13174