How to clear console in gdb while in TUI

馋奶兔 提交于 2020-03-01 05:56:26

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/42282955/how-to-clear-console-in-gdb-while-in-tui

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!