我一直在网上寻找如何解决这个问题,但都没有成功。实际上我已经忽视了这个问题超过一年了。现在我在Symfony 4.1项目中使用更多的Doctrine ORM,希望有人知道如何修复Windows 10机器上的字体/颜色?
命令行工具: * Powershell - 无法正确显示颜色 * 命令提示符 - 无法正确显示颜色 * Git CMD - 无法正确显示颜色
当我创建或编辑实体时,我的CLI看起来是这样的:
E:\wamp\www\GasCruiter>php bin/console make:entity
Class name of the entity to create or update (e.g. GentleChef):
> UserConfirmation
U[K7[30;47mser[39;49m8s[K7[30;47mer[39;49m8e[K7[30;47mr[39;49m8r[K78C[K7[30;47monfirmation[39;49m8o[K7[30;47mnfirmation[39;49m8n[K7[30;47mfirmation[39;49m8f[K7[30;47mirmation[39;49m8i[K7[30;47mrmation[39;49m8r[K7[30;47mmation[39;49m8m[K7[30;47mation[39;49m8a[K7[30;47mtion[39;49m8t[K7[30;47mion[39;49m8i[K7[30;47mon[39;49m8o[K7[30;47mn[39;49m8n[K78
Your entity already exists! So let's add some new fields!
[32mNew property name (press [39m[32m<return>[39m[32m to stop adding fields)[39m:
> date
[32mField type (enter [39m[33m?[39m[32m to see all types)[39m [[33mstring[39m]:
> datetime
d[K7[30;47matetime[39;49m8a[K7[30;47mtetime[39;49m8t[K7[30;47metime[39;49m8e[K7[30;47mtime[39;49m8t[K7[30;47mime[39;49m8i[K7[30;47mme[39;49m8m[K7[30;47me[39;49m8e[K78
[32mCan this field be null in the database (nullable) (yes/no)[39m [[33mno[39m]:
> no
[32mupdated[39m: src/Entity/UserConfirmation.php
[32mAdd another property? Enter the property name (or press [39m[32m<return>[39m[32m to stop adding fields)[39m:
>
[37;42m [39;49m
[37;42m Success! [39;49m
[37;42m [39;49m
Next: When you're ready, create a migration with [33mmake:migration[39m
我可能缺少某种系统字体?不太确定如何修复此问题。
--no-ansi
选项。 - miken32