Why "not" use system("")

I was searching for font colors in console app. and some guy was suggesting using system("Color XX"). But all the users was complaining about people who uses system("") . Why are they complaining ?
system opens up a massive can of worms on your programs security.

What would happen if say you call "pause" through system, and somebody replaced that program with a virus?
Besides which, system( "color XX" ) changes all the colors on the screen -- which is usually not what is wanted. Better to just use the SetConsoleTextAttribute() function directly:
http://www.google.com/search?btnI=1&q=msdn+SetConsoleTextAttribute

If you want to do it on Unix, let me know.
Topic archived. No new replies allowed.