I set a color for the GDB prompt by adding this line to ~/.gdbinit
:
set prompt \033[0;32m(gdb) \033[0m
This works fine in GDB, until I open the TUI. It then discards the colors and shows the raw color codes. The same thing happens if I use CGDB.
This is 2015. Is there any way I can have both colors in GDB and also view the source code I'm debugging in a subwindow (like in TUI/CGDB) at the terminal?
This gdb bug was fixed a while ago (2018). Also, gdb added colorizing to the CLI and to the TUI. This first showed up, I believe, in GDB 9.1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With