PG1995
Active Member
Hi Doug
Is this possible to have colored/bold text output in the command prompt? Suppose I have a script and when it's run, it says "The Job is Done!" at the end. When I worked with C++ I remember there were ways to make the output colored. Kindly let me know if it's possible. Thank you.
Regards
PG
PS: I have found this function but it's not working. It does not colorize the text. However, I can have red color using the line below.
Is this possible to have colored/bold text output in the command prompt? Suppose I have a script and when it's run, it says "The Job is Done!" at the end. When I worked with C++ I remember there were ways to make the output colored. Kindly let me know if it's possible. Thank you.
Regards
PG
PS: I have found this function but it's not working. It does not colorize the text. However, I can have red color using the line below.
Code:
fprintf(2,'\nHello world\n'); % red output
Last edited: