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?
Jump to Post
so 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 like
String s = "\033[1mPlayer 1 chose \033[0mRock";
FYI "[1m" means …
All 4 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.