Description
I am not a programmer nor a technically minded person, please pardon me.
Currently as it stands, in PowerShell its not possible to perform standard everyday mouse operations on a command currently being typed, just as one is able to do so in a standard windows text box:
I believe its possible to do this sort of thing in other environments such as:
- Msys2
- Cygwin
- Wsl on Mintty
- WSL on Windows Terminal
- etc
Microsoft seems to be pushing for a revitalised Command Line experience with Windows Terminal/PowerShell Core, for the every day PC user not just for the programmer. I would say mouse interaction is at the core of this.
The windows Terminal team have expressed they want to do this and are currently working on their implementation that rellies on emulating keyboard keys such as Left
, Right
, Issue #8573. It seems their implantation will be highly limited.
The PowerShell/PsReadLine team are also open to implementing mouse interaction, Issue #1982, but they are lacking the necessary facilities to do so in the .NET engine.
Can we please consider having the necessary features in .NET so that mouse interaction is available as a first class feature in PowerShell Core?
To learn more about this request please take a look at the following pages:
- Allow mouse clicks to reposition cursor by emitting cursor key sequences · Issue #8573 · microsoft/terminal · GitHub
- Feature Request: Add mouse events to PowerShell Engine · Issue #1982 · PowerShell/PSReadLine · GitHub
Thanks allot.