Poetry: Windows default terminal can't handle color codes: --no-ansi by default?

Created on 30 May 2018  路  9Comments  路  Source: python-poetry/poetry

The default Windows terminal (below) and even Hyper (above) can't handle color codes:
image

Maybe make --no-ansi the default on Windows? Or allow me to set the setting system-wide?

Bug CLI

Most helpful comment

FYI colors are shown just fine in ConEmu.

All 9 comments

I confirm this also happens on the default terminal of W10 build 17677.

Poetry is using the "cleo" library to manage the output, this probably should be fixed there instead.

Actually, cleo behaves properly but a modification I made in poetry always activates the "decorated" mode by default.

This should be an easy fix. I will keep you posted.

Wouldn't it be an option to switch to a crossplatform coloring package like Colorama? As a Windows user, I like fancy colors too :-)

They seem to have Windows issues as well? https://github.com/tartley/colorama/issues/104

@madig Hmmm, I've been using it in a few crossplatform projects, no issues so far.

FYI colors are shown just fine in ConEmu.

This should be fixed in the latest release (0.10.2)

Works for me in 0.10.2. Thanks!

Hmm... I'm using ConEmu as the integrated VS Code terminal and I have kind of the same problem.

image

The colors work fine in ConEmu but don't show up through VS Code. However they work when piping the output to cat.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thejohnfreeman picture thejohnfreeman  路  3Comments

probablykasper picture probablykasper  路  3Comments

ghost picture ghost  路  3Comments

sobolevn picture sobolevn  路  3Comments

nikaro picture nikaro  路  3Comments