Add a terminal-side shortcut for clearing the screen and/or scrollback #2651

Open
opened 2026-01-30 23:01:14 +00:00 by claunia · 0 comments
Owner

Originally created by @prumbles on GitHub (Jul 8, 2019).

It would be great to have the equivalent of Command+K on the Mac terminal. This clears the terminal completely, not the equivalent of typing "clear", which only scrolls the cursor to the top of the terminal. My use case is the following:

  • Open an Ubuntu terminal
  • ssh into a server
  • run a command which may produce large amounts of content and exceptions within the content
  • fix the exceptions by making a code change
  • CLEAR the terminal completely (not just a "clear" command)
  • re-run the command
  • now that the previous command output was cleared, we can search for new exceptions without getting the previous exceptions
  • NOTE: this also requires a "ctrl+F" type feature to exist in the terminal, which currently does not
Originally created by @prumbles on GitHub (Jul 8, 2019). It would be great to have the equivalent of Command+K on the Mac terminal. This clears the terminal completely, not the equivalent of typing "clear", which only scrolls the cursor to the top of the terminal. My use case is the following: - Open an Ubuntu terminal - ssh into a server - run a command which may produce large amounts of content and exceptions within the content - fix the exceptions by making a code change - CLEAR the terminal completely (not just a "clear" command) - re-run the command - now that the previous command output was cleared, we can search for new exceptions without getting the previous exceptions - NOTE: this also requires a "ctrl+F" type feature to exist in the terminal, which currently does not
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2651