display ASCII control characters in Emacs GUD (gdb) mode
Asked Answered
P

1

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?

Platform answered 15/4, 2011 at 8:37 Comment(0)
P
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.

Percipient answered 15/4, 2011 at 8:41 Comment(2)
You are right! I have stopped trying ansi-color because it never worked for me in the past when I used older emacs. Thanks!Platform
@Platform How did you achieve it? I tried on Emacs 24.4 but never succeeded.Subplot

© 2022 - 2024 — McMap. All rights reserved.