starcoinorg / starcoin

Starcoin - A Move smart contract blockchain network that scales by layering
Apache License 2.0
1.38k stars 289 forks source link

[MPM] The color information output by the MPM command does not take effect on the Windows platform #3404

Open yubing744 opened 2 years ago

yubing744 commented 2 years ago

Bug Report

The color information output by the MPM command does not take effect on the Windows platform

OS: Windows 10 mpm: v1.11.9-alpha

Current behavior:

image

Expected behavior:

Display color normally or not

Steps to reproduce:

git clone https://github.com/starcoinorg/guide-to-move-package-manager.git
cd guide-to-move-package-manager/basic-coin
mpm.exe package test
jolestar commented 2 years ago

@LemonHX, is this the bug of the termcolor?

xudon9 commented 2 years ago

ANSI terminal control code is not enabled by default on Windows: https://superuser.com/questions/413073/windows-console-with-ansi-colors-handling