.NET
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

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

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
HelloWorlddd
364 Views, 2 Replies

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

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.

2 REPLIES 2
Message 2 of 3
mzakiralam
in reply to: HelloWorlddd

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
Message 3 of 3
HelloWorlddd
in reply to: mzakiralam

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

ā€Boost