gdb - Make color escape codes work in cgdb -
i have following function residing in ~/.gdbinit
:
define foo echo \033[34m echo testing...\n echo \033[0m end
when running foo
in gdb
prints testing...
in blue, however, when running in cgdb
result is:
[34mtesting... [0m
how can enable color escape codes in cgdb
?
unfortunately, gdb "window" in cgdb not full-fledged terminal... can handle basic text i/o not render terminal escape sequences such colors, cursor movement, etc.
Comments
Post a Comment