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");

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.

This question has already been answered. Start a new discussion instead.