changing the text color in DOS possible?

BlitzMax Forums/BlitzMax Programming/changing the text color in DOS possible?

More to the point, shouldn't clicking on the (X) on a console window generate an AppTerminate() event...