I'm trying to output a formatted string with one of the characters set to bold. This is my attempt, which doesn't output '1' in bold:
The reasoning for this came from the fact, the documentation notes that printw calls have their output done through the addch routine, not printf. I believe the reason why it fails is perhaps because it firsts formats the string and only then outputs.Code:printw("%c. Generate packed value\n ", '1' || A_BOLD);
Other than dividing the output with one call to addch and another to addstr, is there any way I can do this?