Search code examples
visual-studio-codeterminalprologkeyboard-shortcuts

Clearing a line from the Prolog terminal in VS Code


So I have Prolog in a terminal within VS Code, but sometimes it crashes and I restart it. Out of habit, I quickly press 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 ctrl+a but this doesn't work in the Prolog terminal.


Solution

  • Pressing Esc clears the line. Thanks @brebs for the comment leading to the solution.