View Full Version : turbo c 2.01

07-15-2002, 11:36 AM
sorry for the double-posting, but
i think this one is better here : :)

hi there
i just installed turbo c 2.01 on a very old computer
now i wanna test some functions like textcolor... :)

can someone please let me know some simple textcolor
functions to put out colored text with turbo c 2.01 ? thx!

07-17-2002, 03:07 PM
you want to print color text right?

WEll here is the format

#include <stdio.h>
#include <conio.h>

int main()

textbackground (RED);
cprintf ("Background ");

return 0;


int main()
textcolor (LIGHTGREEN)
cprintf ("FOREGROUND");
return 0;

remeber use cprintf() istead of printf ...printf does work fine on new compilers for printing color text.

07-18-2002, 02:33 PM
i guess this works with borland only, right? :)
my devc++ won't compile it... but turbo c does

07-18-2002, 07:06 PM
Okay this is what you do they are two ways the first is in the dev's hepl files FAQ the other one which is not there is :-

option-->compiler options

where it says Add the following command when the compiler calls add this c:\dev-c++\lib\conio.o and tick the box..

Remeber you will always have to include the conio.h file when ever you are compiling a programm if you dont whant it that way then just uncheck the box if u dont want to use it ...Peace