GDB monitor inside TMUX garbled

Viewed 193

I was debugging in terminal using gdb, and I typed inlayout src,then I entered the UI mode.
Most of the time, it worked fine, but sometimes, the whole terminal text code got mixed.(I post the picture below.). enter image description here

what's more, sometimes I typed in some shell command in gdb like !pmap <pid>, its output's format was also strange. enter image description here

I tried to set TERM to screen-256color but it doesn't work.

1 Answers

I solved it in some sense. I redirect the output of my program to another tty.

Related