title: Portable text based console manipulator
body: <p>Applications can manipulate text based consoles or terminals, and change their colors, set cursor position. The supported approaches are:</p>
  <ul>
  <li><em>For Unix-like systems:</em> There is <a href="http://en.wikipedia.org/wiki/ANSI_escape_code" rel="nofollow noreferrer"><code>ANSI escape code</code></a>.</li>
  <li><em>For Windows systems:</em> There is APIs like <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms686047%28v=vs.85%29.aspx" rel="nofollow noreferrer"><code>SetConsoleTextAttribute</code></a>.</li>
  <li>...</li>
  </ul>
  <p>but, <strong>is there any lightweight and portable C/C++ library which handles differences between operating systems just for colors and cursor?</strong> and do nothing if it was technically impossible but best effort.</p>
  <p><em>Note: I'm not searching for heavy external tools to emulate unix-like terminals (like Cygwin, Msys-rxvt, ...). I think a simple portability will be achieved with Windows APIs and ANSI escape codes.</em> <em>And not ncurses because it's heavy and has many functionality to full control console and I think it needs emulation.</em></p>