Rather than place the whole program here, I'll simply place a sample since my current code is almost 7000 line long :-)
$CONSOLE:ONLY
_DEST _CONSOLE
PRINT "Hello World!"
PRINT
INPUT "Press ENTER to end the program",a
SYSTEM
All that this program does is display "Hello World!" to the Windows command prompt console.
My reason for doing this is simply that the entire reason for the existence of my program is to run a very large number of Windows command line commands, while also gathering input from a user and then generating all the commands that will need to be run. Because those commands will output information to the Windows command prompt console, I want the entire QB64 program to display its text to that console. As an example, it might look something like this
Display prompts to user in the Windows command line window and get input from the user, entirely within that Window.
Display a message on the screen from the QB64 program that says "We are now performing operation blah, blah, blah"
shell "some windows command"
Windows command line utility displays status information
The whole program is complete and working wonderfully, but as you can imagine, in a program that is 7000 line long, there are some messages where I want to highlight specific text output to the console for a better user experience rather than displaying every little detail all in monochrome. That is where the escape key sequences come in, because with them you can change color attributes.
It's not critical, it was just something I had hoped to be able to figure out a way to accomplish.