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!
ronnel09
0
Newbie Poster
Recommended Answers
Jump to PostI'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);
Jump to Postbackground colour
textbackground(red); cprintf("hii");
use cprintf("hii");like this
textcolor(red+black); cprintf("hii");
All 6 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
rithish
13
Junior Poster in Training
ronnel09
0
Newbie Poster
ronnel09
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
ronnel09
0
Newbie Poster
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.