cgdb shows escape sequence fragments instead of colors in gdb terminal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cgdb (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When running cgdb 0.6.7-2build5 in a Konsole (on Ubuntu 19.04 amd64), it shows colored text in the source-code window, but the gdb window displays something that looks like ANSI escape sequence fragments. This is the
output of the source-code window after running `cgdb a.out`:
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
[...]
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from [32ma.out[m...
(gdb) b main
Breakpoint 1 at [34m0x117e[m: file [32mvptr.cc[m, line 20.
(gdb)
expected output: Colored text, saying e.g. "Reading symbols from a.out..."
TERM is xterm-256color, however `TERM=xterm cgdb a.out` exhibits the same behavior. This also happens inside tmux or screen.
Note that this works fine on Debian 10 (cgdb 0.6.7-2+b4).