Difference: HowToPrintBold ( vs. 1)

Revision 12017-01-17 - JimSkon

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="Spring2017"

How to print bold in c++

Use the following:

  • "\e[1m" - to start bolding
  • "\e[0m" - to end bolding

Example:

<-- SyntaxHighlightingPlugin -->
cout << "Print out " << "\e[1m" << "bold" << "\e[0m" << ", Now not bold again" << endl;
<-- end SyntaxHighlightingPlugin -->

-- Jim Skon - 2016-10-18

Comments

<--/commentPlugin-->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback