Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear console in gdb while in TUI

Tags:

linux

console

gdb

While i am debugging my code in GDB in TUI mode Control + L wont work to clear console. So how am i able to clear console while i am in TUI mode? It just refreshes the screen but doesnt clear the console. I looked at the GDB's official website but as i said, there is only Control + L, but that only clears console while not in TUI mode.

The website is here: https://sourceware.org/gdb/onlinedocs/gdb/TUI-Keys.html#TUI-Keys

like image 655
Siliproksi Avatar asked Nov 08 '22 01:11

Siliproksi


1 Answers

The following works, but is a bit of a cheat:

control x-a
control L
control x-a

i.e. get out of TUI, clear console, and get back in.

Perhaps you'll have better luck, but I thought 'shell clear' or 'shell reset' might work while in a TUI session, but both (esp. reset) confused the curses state significantly.

like image 194
Peeter Joot Avatar answered Nov 15 '22 05:11

Peeter Joot