在gdb中没有专门清屏的命令,但是它可以执行shell中的命令进行清屏clear。

(gdb) help shell
Execute the rest of the line as a shell command.
With no arguments, run an inferior shell.
(gdb)shell clear

 

执行shell clear命令就可以进行清屏了。

相关文章: