Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下功能~/.gdbinit:
~/.gdbinit
define foo echo \033[34m echo testing...\n echo \033[0m end
但是,在其中运行时foo,gdb它会以蓝色打印testing...,但在cgdb 结果中运行时是:
foo
gdb
testing...
cgdb
[34mtesting... [0m
如何在 中启用颜色转义码cgdb?
不幸的是,cgdb 中的 gdb“窗口”不是一个成熟的终端……它可以处理基本的文本 I/O,但它不会呈现任何终端转义序列,例如颜色、光标移动等。