在 Emacs GUD (gdb) 模式下显示 ASCII 控制字符
我调试的程序使用 ascii ctrl 字符进行颜色、粗体等输出大量调试。 在 GUD 模式下,它们显示为“^[[...m”。
有没有办法让输出像在控制台中一样?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 ansi-color.el,它现在是 Emacs 的一部分。您可以向
gdb-mode
添加一个钩子(我想这就是它的名字),以便在进入 gud 时自动设置它。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.