The GDB Text User Interface (TUI) is a terminal interface which uses the ‘curses’ library to show the source file, the assembly output, the program registers and GDB commands in separate text windows. The TUI mode is supported only on platforms where a suitable version of the ‘curses’ library is available.
To run it, use gdb -tui.
If already in a gdb session, do tui enable