Map Ctrl-K to clear scrollback buffer and screen #7338

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

Originally created by @ragunyrasta on GitHub (Apr 9, 2020).

Map Ctrl-K to clear the scrollback buffer and screen

Proposed technical implementation details (optional)

Originally created by @ragunyrasta on GitHub (Apr 9, 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! --> Map Ctrl-K to clear the scrollback buffer and screen <!-- Both in the mac Terminal, and in apps like Hyper, Ctrl/Cmd K is always mapped to clear the scrollback buffer and screen. Could we enable this here too? --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:01:23 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Apr 9, 2020):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #1882 for more discussion.

/dup #1882

As I said in that thread:

To clarify for future me - cmd+k is not something that's being handled by bash or the shell. This is the Terminal itself handling the keybinding, and clearing both the buffer and the scrollback.

You've described a user story that makes sense to me, so I'm gonna put this on the backlog.

  • We'd probably want #1142 to be able to support adding keybindings for Clear Screen, Clear Scrollback, or Clear Both all on the same "clear" action.
  • We'll need #1193 for clearing the conpty buffer. W/o this, we'll just get the screen repainted immediately.
@zadjii-msft commented on GitHub (Apr 9, 2020): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #1882 for more discussion. /dup #1882 As I said in that thread: > To clarify for future me - <kbd>cmd</kbd>+<kbd>k</kbd> is not something that's being handled by `bash` or the shell. This is the Terminal itself handling the keybinding, and clearing both the buffer and the scrollback. > > You've described a user story that makes sense to me, so I'm gonna put this on the backlog. > * We'd probably want #1142 to be able to support adding keybindings for Clear Screen, Clear Scrollback, or Clear Both all on the same "clear" action. > * We'll need #1193 for clearing the conpty buffer. W/o this, we'll just get the screen repainted immediately.
Author
Owner

@ghost commented on GitHub (Apr 9, 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 (Apr 9, 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#7338