在Emacs GUD(gdb)模式下显示ASCII控制字符 [英] display ASCII control characters in Emacs GUD (gdb) mode
本文介绍了在Emacs GUD(gdb)模式下显示ASCII控制字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在GUD模式下,它们显示为^ [[... m。
有没有办法让输出像在控制台中一样?
解决方案
你可以使用现在是Emacs一部分的 ansi-color.el 。您可以添加一个钩子到 gdb-mode
(我认为这是所谓的),当您进入gud时自动设置。
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?
解决方案
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.
这篇关于在Emacs GUD(gdb)模式下显示ASCII控制字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文