How to echo with different colors in the Windows command line

前端 未结 23 1500
野性不改
野性不改 2020-11-22 08:55

I know that the color bf command sets the colors of the whole command line window but I wanted to to print one single line in a different color.

23条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 09:43

    You could use ANSICON to enable ANSI terminal codes in older versions of Windows. There are 32 and 64 bit versions that I have used in Windows XP and Windows 7.

提交回复
热议问题