You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When pressing Shift+End, [console]::ReadKey($true) returns Escape as the ConsoleKeyInfo value, and triggers the 1;2F input from terminal. This is on WSL v2 with Ubuntu 20.04. The value for environment variable TERM is xterm-256color.
Note that, Ctrl+End, Alt+End, Ctrl+Home, Alt+Home, and Shift+Home are all work as expected. For example, Shift+Home returns:
Reproduction Steps
Run [console]::ReadKey($true), for example, from PowerShell
Press the keystrokes Shift+End
Expected behavior
The returned ConsoleKeyInfo should be:
KeyChar Key Modifiers
------- --- ---------
End Shift
Actual behavior
returns Escape as the ConsoleKeyInfo value, and triggers the 1;2F input from terminal.
Regression?
Not sure. At least the same behavior is found on .NET 5 as well.
Known Workarounds
Unkown.
Configuration
.NET: this repros on both .NET 6 and .NET 5.
OS: Ubuntu 20.04, WSL v2
Architecture is x64
Other information
No response
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/area-system-console
See info in area-owners.md if you want to be subscribed.
Issue Details
Description
When pressing Shift+End, [console]::ReadKey($true) returns Escape as the ConsoleKeyInfo value, and triggers the 1;2F input from terminal. This is on WSL v2 with Ubuntu 20.04. The value for environment variable TERM is xterm-256color.
Note that, Ctrl+End, Alt+End, Ctrl+Home, Alt+Home, and Shift+Home are all work as expected. For example, Shift+Home returns:
Reproduction Steps
Run [console]::ReadKey($true), for example, from PowerShell
Press the keystrokes Shift+End
Expected behavior
The returned ConsoleKeyInfo should be:
KeyChar Key Modifiers
------- --- ---------
End Shift
Actual behavior
returns Escape as the ConsoleKeyInfo value, and triggers the 1;2F input from terminal.
Regression?
Not sure. At least the same behavior is found on .NET 5 as well.
Description
This affects functionality of PSReadLine: PowerShell/PSReadLine#3126
When pressing Shift+End,
[console]::ReadKey($true)
returnsEscape
as theConsoleKeyInfo
value, and triggers the1;2F
input from terminal. This is on WSL v2 with Ubuntu 20.04. The value for environment variableTERM
isxterm-256color
.Note that, Ctrl+End, Alt+End, Ctrl+Home, Alt+Home, and Shift+Home are all work as expected. For example, Shift+Home returns:
Reproduction Steps
[console]::ReadKey($true)
, for example, from PowerShellExpected behavior
The returned
ConsoleKeyInfo
should be:Actual behavior
returns
Escape
as theConsoleKeyInfo
value, and triggers the1;2F
input from terminal.Regression?
Not sure. At least the same behavior is found on .NET 5 as well.
Known Workarounds
Unkown.
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: