How to control the color the of the contents in the command prompt?

How to control the color the of the contents in the command prompt?

Anonymous
Not applicable
501 Views
2 Replies
Message 1 of 3

How to control the color the of the contents in the command prompt?

Anonymous
Not applicable

Sometimes, I need to output some warning message to users, there will be several messages, if I use the message box, it's unfriendly, so ,I want output all warning message in the command prompt, but it's not marked.,but I don't know how to set the color.


For example, the message show in the command prompt will be like below:


Warning:
xxxx xxx xxx xxx .............


What's the usual way of output the error, warning or exception, Any help much appreciated.

0 Likes
Accepted solutions (1)
502 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution
you can control the command line Background Color, command line text size, font and style from Options but not a particular string in command line
0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks for your help. Maybe I should try some others ways to output warning.

0 Likes