问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/5674255/display-ascii-control-characters-in-emacs-gud-gdb-mode