display ASCII control characters in Emacs GUD (gdb) mode

≯℡__Kan透↙ 提交于 2019-12-13 19:54:00

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!