How to echo with different colors in the Windows command line

前端 未结 23 1493
野性不改
野性不改 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:26

    We used to do this with ANSI terminal codes. Not sure if they still work, but you could try them.

提交回复
热议问题