Good day ma'am/sir,
i just wanna ask how to add color in a just specific word?
because i tried this one
printf("You chose");
textcolor(RED); printf("RED");
but still the whole output is colored red.
please help, THANKS!

I'm no longer hip on Turbo C stuff, but if textcolor() works in any sane manner, it should set the color to whatever you chose until the next call. So for one word:

textcolor(WHITE);
printf("You chose: ");
fflush(stdout);
textcolor(RED);
printf("RED\n");
textcolor(WHITE);

background colour

textbackground(red);
cprintf("hii");

use cprintf("hii");like this

textcolor(red+black);
cprintf("hii");

ohhh thank you ! it really helped me!

how about changing the font size of the output using codes? can it be possible? thanks!

You can change the overall font size of the console, but changing it at will for different parts of text the way you can change color isn't possible. You'd need an output window that supports some form of rich text.

thank you sir! it is a big help to me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.