How to echo with different colors in the Windows command line

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

    You can use the color command to change the color of the whole console

    Color 0F
    

    Is black and white

    Color 0A 
    

    Is black and green

提交回复
热议问题