英文:
Clearing a line from the Prolog terminal in VS Code
问题
我在VS Code的终端中使用Prolog,但有时会崩溃,我需要重新启动它。出于习惯,我迅速按下键盘上的“↑”键,以获取我的最后一个Prolog查询,但由于我的历史记录不再存在,它只显示我刚刚加载的.pl
文件的非常长的一行内容。有没有一种快速移除此行而不必按住退格键几秒钟的方法?
我尝试按下"ctrl"+"a"键,但这在Prolog终端中不起作用。
英文:
So I have Prolog in a terminal within VS Code, but sometimes it crashes and I restart it. Out of habit, I quickly press <kbd>↑</kbd> to get my last Prolog query, but because my history is not there anymore it only shows the very long line of my .pl
file that I just loaded in. Is there a way to quickly remove this line without holding backspace for a few seconds?
I tried pressing <kbd>ctrl</kbd>+<kbd>a</kbd> but this doesn't work in the Prolog terminal.
答案1
得分: 2
按下 <kbd>Esc</kbd>
清除该行。感谢 @brebs 提供的解决方案评论。
英文:
Pressing <kbd>Esc</kbd> clears the line. Thanks @brebs for the comment leading to the solution.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论