简体   繁体   English

如何清楚gdb命令屏幕?

[英]How clear gdb command screen?

Is it possible to clear the command window of gdb? 是否可以清除gdb的命令窗口? I mean, is there a command in gdb that do the same (for the command windows) as the clear command in a bash terminal? 我的意思是,gdb中的命令是否与bash终端中的clear命令一样(对于命令窗口)?

Hit Control + L . 命中Control + L Works for me in Linux and Mac OS X as well with recent versions of GDB. 适用于Linux和Mac OS X以及最新版本的GDB。

Depending on the environment you can try this key combination: Ctrl + L . 根据环境的不同,您可以尝试使用此组合键: Ctrl + L. That is: hold down the Control key, and type the L key. 即:按住Control键,然后键入L键。

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: 您还可以尝试以下操作:在gdb中,您可以使用shell执行shell命令:使用此命令调用shell以清除终端:

shell clear

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM