Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

Colorer characters printed out on windows #226

Open

Description

@raczben

Here is the output of codecov, where there are some unwanted characters like �[90m==>�[0m

D:\foo>codecov

      _____          _
     / ____|        | |
    | |     ___   __| | ___  ___ _____   __
    | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
    | |___| (_) | (_| |  __/ (_| (_) \ V /
     \_____\___/ \____|\___|\___\___/ \_/
                                    v2.0.15

�[90m==>�[0m Detecting CI provider
  -> Got branch from git/hg
  -> Got sha from git/hg
�[90m==>�[0m Preparing upload
The filename, directory name, or volume label syntax is incorrect.
    Error running `cd 'D:\foo' && git ls-files`: None
�[41mError:�[0m�[91m Missing repository upload token�[0m

�[42mTip:�[0m�[32m See all example repositories: https://github.com/codecov?query=example�[0m
�[92mSupport channels:�[0m
  Email:   hello@codecov.io
  IRC:     #codecov
  Gitter:  https://gitter.im/codecov/support
  Twitter: @codecov

I use:

  • Win 10.0.18363 Build 18363 (both cmd and powershell)
  • Python 3.7.4
  • Codecov py-v2.0.15 - https://codecov.io/

Activity

  1. raczben commented on Jan 28, 2020

    @raczben
    Author

    A workaround is to use --no-color switch. However this should be solved, codecov should detect the platform.

  2. raczben commented on Jan 28, 2020

    @raczben
    Author

    I suggest to use colorama or termcolor or any other handy tool for colored output, instead of the current, platform specific way.

  3. self-assigned this
    on Nov 29, 2020
  4. nmoinvaz commented on Dec 2, 2020

    @nmoinvaz
    Contributor

    Colors work properly in PowerShell command prompt, however it does not work in cmd prompt.

  5. removed their assignment
    on Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions