Keyboard scroll (Scroll Lock plus ↑, ↓, PgUp, PgDn) #9148

Closed
opened 2026-01-31 01:47:12 +00:00 by claunia · 6 comments
Owner

Originally created by @martingbrown on GitHub (Jun 19, 2020).

Currently when I press the up and down arrows, terminal (or it may be PowerShell/Cmd) switches between my most recently used commands. I'd also like to be able to scroll the screen, similarly to how the scroll bar works, using the keyboard.

My proposal would be to use the Scroll Lock key to toggle between two modes. With scroll lock off it would work as it does now, with scroll lock on the Up and Down arrows would scroll a single line (or repeatedly scroll one line if held down) and the Page Up, Page Down keys would scroll an entire window full.

Excel has similar functionality. With scroll lock off the selected cell moves, with scroll lock on it doesn't.

Originally created by @martingbrown on GitHub (Jun 19, 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! --> <!-- 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). --> Currently when I press the up and down arrows, terminal (or it may be PowerShell/Cmd) switches between my most recently used commands. I'd also like to be able to scroll the screen, similarly to how the scroll bar works, using the keyboard. <!-- A clear and concise description of what you want to happen. --> My proposal would be to use the Scroll Lock key to toggle between two modes. With scroll lock off it would work as it does now, with scroll lock on the Up and Down arrows would scroll a single line (or repeatedly scroll one line if held down) and the Page Up, Page Down keys would scroll an entire window full. Excel has similar functionality. With scroll lock off the selected cell moves, with scroll lock on it doesn't.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:47:12 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jun 19, 2020):

There's already the following keybindings if you want to use the keyboard to navigate the scrollback:
1fdceb0ea9/src/cascadia/TerminalApp/defaults.json (L331-L334)

Do those work for you?

@zadjii-msft commented on GitHub (Jun 19, 2020): There's already the following keybindings if you want to use the keyboard to navigate the scrollback: https://github.com/microsoft/terminal/blob/1fdceb0ea99f968142cb014286baa362c65d6b3f/src/cascadia/TerminalApp/defaults.json#L331-L334 Do those work for you?
Author
Owner

@ghost commented on GitHub (Jun 23, 2020):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Jun 23, 2020): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@martingbrown commented on GitHub (Jun 24, 2020):

I guess that does work, but I still think it would make the finger gymnastics a bit easier to use scroll lock.

@martingbrown commented on GitHub (Jun 24, 2020): I guess that does work, but I still think it would make the finger gymnastics a bit easier to use scroll lock.
Author
Owner

@DHowett commented on GitHub (Jun 26, 2020):

I agree. We've got a couple specs in flight here (#2529, for #980), and #3863 mentions scroll lock. Once we have keyboard selection (#2840 spec), that'll include keyboard buffer navigation, and we can extend #2529 to cover scroll lock as well. We're also considering "mark" mode (a mode you switch into where you can navigate the buffer solely by keyboard)

/dup #3863, #715

@DHowett commented on GitHub (Jun 26, 2020): I agree. We've got a couple specs in flight here (#2529, for #980), and #3863 mentions scroll lock. Once we have keyboard selection (#2840 spec), that'll include keyboard buffer navigation, and we can extend #2529 to cover scroll lock as well. We're also considering "mark" mode (a mode you switch into where you can navigate the buffer solely by keyboard) /dup #3863, #715
Author
Owner

@ghost commented on GitHub (Jun 26, 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 (Jun 26, 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!
Author
Owner

@martingbrown commented on GitHub (Jun 26, 2020):

Thanks Dustin, sounds like you've got this covered.

@martingbrown commented on GitHub (Jun 26, 2020): Thanks Dustin, sounds like you've got this covered.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9148