Clear screen option like macOS and Gnome terminals #5961

Closed
opened 2026-01-31 00:26:30 +00:00 by claunia · 2 comments
Owner

Originally created by @ascarter on GitHub (Jan 15, 2020).

Description of the new feature/enhancement

Add an option (or options) to clear the screen/buffer. As a long time macOS and Linux user, I instinctively hit Cmd+K to clear the buffer (of course Ctrl-K on windows). It would be very useful to offer some clearing options like the macOS terminal does (clear to start, clear screen, clear scrollback, clear to mark). Gnome terminal also has some similar options. Ideally should be able to be mapped to a shortcut (ideally Ctrl+k or Ctrl+shift+k) but a menu option is good as well (like settings).

Proposed technical implementation details (optional)

clear already works for PowerShell, cmd, and bash. I believe this is a standard escape sequence for VT100 terminals. Ideally, just let this be a way to issue that escape sequence to the terminal that is running.

  • Expose one or more clear screen options that can be associated to a shortcut key
  • Either map Ctrl+k, Ctrl+Shift+k to clear screen by default or offer documentation so a user can add to the profile
Originally created by @ascarter on GitHub (Jan 15, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement Add an option (or options) to clear the screen/buffer. As a long time macOS and Linux user, I instinctively hit `Cmd+K` to clear the buffer (of course `Ctrl-K` on windows). It would be very useful to offer some clearing options like the macOS terminal does (clear to start, clear screen, clear scrollback, clear to mark). Gnome terminal also has some similar options. Ideally should be able to be mapped to a shortcut (ideally `Ctrl+k` or `Ctrl+shift+k`) but a menu option is good as well (like settings). <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) `clear` already works for PowerShell, cmd, and bash. I believe this is a standard escape sequence for VT100 terminals. Ideally, just let this be a way to issue that escape sequence to the terminal that is running. <!-- A clear and concise description of what you want to happen. --> * Expose one or more clear screen options that can be associated to a shortcut key * Either map `Ctrl+k`, `Ctrl+Shift+k` to clear screen by default or offer documentation so a user can add to the profile
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 00:26:31 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 15, 2020):

/dup #1882.

@DHowett-MSFT commented on GitHub (Jan 15, 2020): /dup #1882.
Author
Owner

@ghost commented on GitHub (Jan 15, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jan 15, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5961