In Command Prompt, type: cls and press Enter. Doing this clears the entire application screen. Close and reopen Command Prompt.
To exit GDB, use the quit command (abbreviated q ), or type an end-of-file character (usually C-d ). If you do not supply expression , GDB will terminate normally; otherwise it will terminate using the result of expression as the error code.
Use the run command to start your program under GDB. You must first specify the program name (except on VxWorks) with an argument to GDB (see section Getting In and Out of GDB), or by using the file or exec-file command (see section Commands to specify files).
Hit Control + L
. Works for me in Linux and Mac OS X as well with recent versions of GDB.
Depending on the environment you can try this key combination: Ctrl+L. That is: hold down the Control key, and type the L key.
But this may not work in all environments. You can also try the following: in gdb you can execute shell commands using shell
: use this to call out to the shell to clear the terminal:
shell clear
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