some key combinations are not sent to console (PowerShell) #15264

Closed
opened 2026-01-31 04:33:12 +00:00 by claunia · 5 comments
Owner

Originally created by @MohammadMD1383 on GitHub (Sep 18, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.0

Other Software

PowerShell 7

Steps to reproduce

image

Expected Behavior

pressing ctrl+up -> move terminal one line up

Actual Behavior

nothing happens.
the key combination is not being sent to PowerShell

Originally created by @MohammadMD1383 on GitHub (Sep 18, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.0 ### Other Software PowerShell 7 ### Steps to reproduce ![image](https://user-images.githubusercontent.com/69088224/133889538-80905a49-4c2e-4250-99cf-f696fce93364.png) ### Expected Behavior pressing ctrl+up -> move terminal one line up ### Actual Behavior nothing happens. the key combination is not being sent to PowerShell
Author
Owner

@zadjii-msft commented on GitHub (Sep 18, 2021):

Are you trying to do this in the Windows Terminal or a vintage console window (conhost.exe, i.e. what you get from running pwsh.exe directly)?

@zadjii-msft commented on GitHub (Sep 18, 2021): Are you trying to do this in the Windows Terminal or a vintage console window (`conhost.exe`, i.e. what you get from running `pwsh.exe` directly)?
Author
Owner

@MohammadMD1383 commented on GitHub (Sep 18, 2021):

I'm using windows terminal with default profile of pwsh.exe

@MohammadMD1383 commented on GitHub (Sep 18, 2021): I'm using windows terminal with default profile of `pwsh.exe`
Author
Owner

@j4james commented on GitHub (Sep 18, 2021):

I'm not much of a PowerShell user, so forgive my ignorance, but is the intent of the ScrollDisplay functions to pan the viewport over the scrollback buffer? Because if that's the case, I wouldn't expect it to work. The key combinations are probably getting through fine, but PowerShell would have no way of controlling the viewport position in Windows Terminal. This is essentially the same problem as issues #9622 and #10191.

@j4james commented on GitHub (Sep 18, 2021): I'm not much of a PowerShell user, so forgive my ignorance, but is the intent of the `ScrollDisplay` functions to pan the viewport over the scrollback buffer? Because if that's the case, I wouldn't expect it to work. The key combinations are probably getting through fine, but PowerShell would have no way of controlling the viewport position in Windows Terminal. This is essentially the same problem as issues #9622 and #10191.
Author
Owner

@zadjii-msft commented on GitHub (Sep 18, 2021):

is the intent of the ScrollDisplay functions to pan the viewport over the scrollback buffer

I am pretty sure that's how that works.

You may be interested in the various different scrolling actions in the Terminal, which are bound by default to:

0a7310dee4/src/cascadia/TerminalSettingsModel/defaults.json (L383-L390)

@zadjii-msft commented on GitHub (Sep 18, 2021): > is the intent of the `ScrollDisplay` functions to pan the viewport over the scrollback buffer I am pretty sure that's how that works. You may be interested in the [various different scrolling actions in the Terminal](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#scrollback-commands), which are bound by default to: https://github.com/microsoft/terminal/blob/0a7310dee4c36f1c423c58b958ffbdbb164ce140/src/cascadia/TerminalSettingsModel/defaults.json#L383-L390
Author
Owner

@MohammadMD1383 commented on GitHub (Sep 19, 2021):

@zadjii-msft thank you. that helped

@MohammadMD1383 commented on GitHub (Sep 19, 2021): @zadjii-msft thank you. that helped
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15264