Disable scroll keyboard shortcut when in alternate screen mode #12412

Open
opened 2026-01-31 03:15:00 +00:00 by claunia · 2 comments
Owner

Originally created by @rmccampbell on GitHub (Feb 5, 2021).

Description of the new feature/enhancement

By default ctrl+shift+up/down scrolls windows terminal up or down. This is good for normal terminal usage, however it is not generally useful when in an alternate screen app like vim, emacs, tmux, etc. which generally handle scrolling internally. These apps also can have ctrl+shift+up/down bound to useful shortcuts, like in emacs by default it will extend the selection up or down by a paragraph.
I would suggest if possible an option to disable the scrolling shortcut when in alternate screen mode and pass it through to the underlying program.

Originally created by @rmccampbell on GitHub (Feb 5, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 By default ctrl+shift+up/down scrolls windows terminal up or down. This is good for normal terminal usage, however it is not generally useful when in an alternate screen app like vim, emacs, tmux, etc. which generally handle scrolling internally. These apps also can have ctrl+shift+up/down bound to useful shortcuts, like in emacs by default it will extend the selection up or down by a paragraph. I would suggest if possible an option to disable the scrolling shortcut when in alternate screen mode and pass it through to the underlying program.
claunia added the Issue-TaskProduct-TerminalArea-TerminalControl labels 2026-01-31 03:15:01 +00:00
Author
Owner

@j4james commented on GitHub (Feb 6, 2021):

I think the problem is that conpty doesn't yet pass through the alt buffer requests to Windows Terminal. See issue #381.

@j4james commented on GitHub (Feb 6, 2021): I think the problem is that conpty doesn't yet pass through the alt buffer requests to Windows Terminal. See issue #381.
Author
Owner

@zadjii-msft commented on GitHub (Feb 8, 2021):

Yea, j4james hit the nail on the head. I'm going to leave this open to make sure we pass those keys through in alt buffer mode though. Since they don't do anything in the alt buffer, then the underlying commandline application should get to have a go at them.

@zadjii-msft commented on GitHub (Feb 8, 2021): Yea, j4james hit the nail on the head. I'm going to leave this open to _make sure_ we pass those keys through in alt buffer mode though. Since they don't do anything in the alt buffer, then the underlying commandline application should get to have a go at them.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12412