PSReadline breaks transparency keyboard shortcuts on Windows 10 console host
See original GitHub issueThe {CTRL} + {SHIFT} + {+/-}
keyboard shortcuts for the Windows 10 console host don’t work with PSReadline
imported into the PowerShell session. Removing the module fixes the shortcuts, as a temporary workaround.
Cheers, Trevor Sullivan Microsoft MVP PowerShell http://trevorsullivan.net http://twitter.com/pcgeek86
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Windows 10 gets a fresh command prompt and lots of ...
Enter "Mark Mode" to move cursor within window. ALT. In conjunction with one of the selection key combinations, begins selection in block mode....
Read more >I was today years old... : r/PowerShell
You can change the opacity on the fly using Ctrl shift and mouse scroll wheel. ok thats worth way more than just being...
Read more >Clear screen using Ctrl+L is misbehaving when ...
Ever since upgrading to Windows 10 1809 clearing the screen using Ctrl+L no longer works as expected. I have observed the same behavior...
Read more >Using PSReadLine key handlers - PowerShell
Keyboard chords are a sequence of one or more keystrokes that are pressed at the same time. For example, the chord Ctrl +...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here are workarounds for most of the currently unsupported shortcuts:
~Given that PowerShell doesn’t seem to release references to COM objects, more work may be needed.~ [edited by @daxian-dbw, the referenced issues was closed]
The transparency-increasing/decreasing shortcuts cannot be emulated this way, because the modifier-key status is lost after the initial keypress, so that auto-repeating invocation for gradual adjustment doesn’t work, making the emulation too cumbersome to use.
However, you can at least get the functionality via different shortcut keys, as long as they don’t involve modifiers; the following definitions demonstrate that with <kbd>F9</kbd> and <kbd>F10</kbd>:
Note that <kbd>Ctrl+Shift</kbd> + “mouse wheel scrolling” works with PSReadLine. It’s a workaround for the reported issue. Given that there is nothing much can be done in PSReadLine about this, I will close this issue as external.