开发者

display ASCII control characters in Emacs GUD (gdb) mode

开发者 https://www.devze.com 2023-02-25 05:16 出处:网络
Programs I debug output a lot of debug using ascii ctrl characters for colors, bold etc.开发者_JAVA技巧

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

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号