It depends on what exactly you want to achieve.
The Unix interface is generic enough not to allow exploiting the full
capabilities of a given terminal. So, depending on what exactly you want
to achieve, it may or may not be the right thing.
The OP wanted to achieve "coloured output". Which is easily
achievable using curses -- a library which is standardized
by POSIX and available on every POSIX-conforming system.
When the OP mentions an OS, a redirection to the OS programming related
newsgroup is the right thing. When the OP mentions a terminal, the
redirection is to a newsgroup dealing with terminals.
I might be running this xterm on a Unix box, but the application that
generates output on it may very well be running on a platform that
has nothing to do with Unix or its standards.
The probability is good that the OP is programming on an Unix/Linux
platform. The probability is exceedingly great that the OP is programming
on either some version of Windows or Unix/Linux. In every one of these
possibilities, the curses library is available.
The probability is low that the OP wants to learn how to program
"coloured" output on only one particular type of terminal. The
probability is exceedingly low that the OP wants to write his/her
very own terminal-independant "coloured output" library.
Your argument is pedantry and your answer almost certainly points
the OP in a direction he does not want to go. I can understand
being pedantic about what is and is not standard C. I do not
understand why you feel the need to mislead people who are
just looking for some help.