title: How to use colors in GDB with TUI or CGDB?
body: <p>I set a color for the <strong>GDB</strong> prompt by adding this line to <code>~/.gdbinit</code>:</p>
  
  <pre><code>set prompt \033[0;32m(gdb) \033[0m
  </code></pre>
  
  <p>This works fine in GDB, until I open the <strong>TUI</strong>. It then discards the colors and shows the raw color codes. The same thing happens if I use <strong>CGDB</strong>.</p>
  
  <p>This is 2015. Is there any way I can have both colors in GDB and also view the source code I'm debugging in a subwindow (like in TUI/CGDB) at the terminal?</p>