1

Programs I debug output a lot of debug using ascii ctrl characters for colors, bold etc. In GUD mode they appear as "^[[...m".

Is there a way to have that output like it would be in a console?

chrisxxyy
  • 159
  • 1
  • 4

1 Answers1

2

You can use ansi-color.el which is part of Emacs now. You can add a hook to gdb-mode (I think that's what it's called) to automatically set this up when you go into gud.

Noufal Ibrahim
  • 71,383
  • 13
  • 135
  • 169
  • You are right! I have stopped trying ansi-color because it never worked for me in the past when I used older emacs. Thanks! – chrisxxyy Apr 15 '11 at 09:39
  • @chrisxxyy How did you achieve it? I tried on Emacs 24.4 but never succeeded. – xuhdev Mar 19 '16 at 23:21