How would one make one word of out put bold. I am making rock paper scissors using threads and I want to make the choice of either rock, paper, or scissors bold. So for example the output of the program would be "Player 1 chose Rock. How can I do this?
kyle.mace.35
0
Light Poster
Recommended Answers
Jump to Postso if this is a console programme u can use "\033" this special character
String s = "Player 1 chose \033[1mRock";
actually this "Rock" part may can give gray look but if it is the issu change the order likeString s = "\033[1mPlayer 1 chose \033[0mRock";
FYI "[1m" means …
All 4 Replies
noelDuino
0
Newbie Poster
kyle.mace.35
0
Light Poster
kyle.mace.35
0
Light Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured 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.