title: Coloured output in Turbo C++
body: <p>My compiler is <a href="http://turboc-for-windows.soft32.com/" rel="nofollow noreferrer">Turbo C++ v3.0 with DOS v5.0 emulated in DOSBox v0.74</a><br>
  I use this because Turbo C++ is the compiler with which
  my highschool has chosen to teach the C++ programming language.
  It has been stressed that I use this compiler while coding my final term project.</p>
  <p>I'm running Windows 8.1 (64 bit) with Intel Core i5-3317U CPU @ 1.70GHz</p>
  <p>For the sake of liveliness and in tribute to popular culture,
  <strong>I want my output screens to have green text.</strong></p>
  <p>The following is what seemed to work :</p>
  <pre><code>#include&lt;iostream.h&gt;
  #include&lt;conio.h&gt;
  void main(){
   clrscr();
   textcolor(2); // text set to green colour (conio.h function)
   cprintf(&quot;\n\t Hello World&quot;); // cprintf from conio.h
   cout &lt;&lt; &quot;\n\t Hello World&quot;; // cout from iostream.h
   getch();
  }
  </code></pre>
  <p>The output of which is as follows <sup><sub>(screen has been trimmed to save space on this post)</sub></sup>:</p>
  <p><img src="https://i.stack.imgur.com/uIF3Z.png" alt="hello world" /></p>
  <p>According to the Help Section in Turbo C++,</p>
  <blockquote>
  <p><code>cprintf()</code> sends formatted output to the text window on the screen.</p>
  </blockquote>
  <p>As you can see, the text printed onto the screen by <code>cout</code> is not green and my project is composed of a lot of <code>cin</code> and <code>cout</code> and some writing and reading files.</p>
  <p>The result I desire can (although I have not yet tried) most likely be obtained by replacing all my <code>cout &lt;&lt; &quot;...&quot;;</code> with <code>cprintf(&quot;...&quot;);</code>
  but I've written so many cout statements that it's going to be hard to edit the code that much.</p>
  <p><code>cprintf</code> is new territory for me and I'm slightly set aback by how
  <code>cprintf(&quot;\t&quot;);</code> is outputed as <code>o</code></p>
  <p>So, I'm not to keen using this. I don't wish to use this until and unless it is my only option.</p>
  <p>The libraries <code>cstdlib.h</code> and <code>windows.h</code> are unavailable in Turbo C++ and hence I can't use their utilities to get what I want either.</p>
  <p>In the end, all I want is that output prompt to display the text I've <code>cout</code>ed in bright green. Minimal change to my code would be nice.
  I wouldn't even mind having to change some settings of my emulator or compiler or shell to do it.</p>
  <p>All help is much appreciated. Thank you in advance =)</p>