Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MohammadMD1383 opened this issue Sep 18, 2021 · 5 comments
Closed

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

MohammadMD1383 opened this issue Sep 18, 2021 · 5 comments
Labels
Issue-Question For questions or discussion Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered

Comments

@MohammadMD1383
Copy link

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

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Sep 18, 2021
@zadjii-msft
Copy link
Member

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 zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Sep 18, 2021
@MohammadMD1383
Copy link
Author

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

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Sep 18, 2021
@j4james
Copy link
Collaborator

j4james commented 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.

@zadjii-msft
Copy link
Member

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:

// Scrollback
{ "command": "scrollDown", "keys": "ctrl+shift+down" },
{ "command": "scrollDownPage", "keys": "ctrl+shift+pgdn" },
{ "command": "scrollUp", "keys": "ctrl+shift+up" },
{ "command": "scrollUpPage", "keys": "ctrl+shift+pgup" },
{ "command": "scrollToTop", "keys": "ctrl+shift+home" },
{ "command": "scrollToBottom", "keys": "ctrl+shift+end" },
{ "command": { "action": "clearBuffer", "clear": "all" } },

@zadjii-msft zadjii-msft added Issue-Question For questions or discussion Resolution-Answered Related to questions that have been answered labels Sep 18, 2021
@MohammadMD1383
Copy link
Author

@zadjii-msft thank you. that helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question For questions or discussion Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

3 participants