port (apt-get) install cgdb display code. better than layout in linux, and better than gdb in mac which does not support tui.