Did you read the content of that post and try to comprehend it or did you just copy and paste the example code?
Take a minute to read the answer and understand why it works. Then you will understand how to make it work in Xojo. All of the answers you need are in that post. It does indeed work.
I get the feeling @Tim Parnell thinks I was being a bit lazy in not reading the question fully. To make up for it, I put together a simple module (get it from Github) called ShellFormat that you can drop into a ConsoleApplication to simplify the process of adding formatted text.
There are two methods, one is just for setting colours (Colourise), the other also allows you to set the bold and underline status.
Example usage:
[code] using ShellFormat
Print "This is " + Colourise(“red text”, ShellColor.Red) + “.”
Print Colourise(“Here’s white on a blue background”, ShellColor.White, ShellColor.Blue) + “.”
I get the feeling @Tim Parnell thinks I was being a bit lazy in not reading the question fully. To make up for it, I put together a simple module (get it from Github) called ShellFormat that you can drop into a ConsoleApplication to simplify the process of adding formatted text.
There are two methods, one is just for setting colours (Colourise), the other also allows you to set the bold and underline status.
Example usage:
[code] using ShellFormat
Print "This is " + Colourise(“red text”, ShellColor.Red) + “.”
Print Colourise(“Here’s white on a blue background”, ShellColor.White, ShellColor.Blue) + “.”