It's a Turbo C/C++ Compiler function. It is in the conio.h header, but only if you're using a Turbo C/C++ Compiler.
See page 384 of the Turbo C/C++ Compiler 2.0 docs, which says:
Function Selects new character color in text mode.
Syntax
#include <conio.h>
void textcolor(int newcolor);
Prototype in conio.h
Remarks: textcolor selects the foreground character color. The
foreground color of all characters subsequently written
by the console output functions will be the color given
by newcolor. You can give the color using a symbolic
constant defined in conio.h. If you use these constants,
you must include conio.h
.
This function does not affect any characters currently on
the screen, but only those displayed using direct console
output (such as cprintf) after textcolor has been called.
[...]
See also: Colorizing text in Turbo C++.
Hey, internet isn't yet a never ending repository of knowledge, references, examples, how to's and stack overflows (wink wink), so I'll just create it... by my self... in one place... ok... sounds duable, let's do it.
And we kids today complain with all those abundantly available at our fingers. – Treasatreason