title: printing colored string in cpp
body: <p>I have a problem in colorizing a special string or character in cpp.
  I tried this code:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdlib.h&gt;
  
  using namespace std;
  
  #define red &quot;\x1B[31m&quot;
  #define reset &quot;\033[0m&quot;
  #define blue &quot;\x1B[34m&quot;
  #define green &quot;\x1B[32m&quot;
  #define yellow &quot;\x1B[33m&quot;
  
  int main()
  {
  cout &lt;&lt; red &lt;&lt; &quot;red text&quot; &lt;&lt; reset &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  <p>I expected to print <strong>red text</strong> by red color.It works in online compilers.
  But in ( dev c++ ) and code::blocks ,it is output :</p>
  <pre><code>←[31mred text←[0m
  </code></pre>
  <p><strong>How can I fix it?</strong></p>