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

Mouse Events Support for Win32 console applications #1990

Open
nkrepo opened this issue Dec 2, 2021 · 1 comment
Open

Mouse Events Support for Win32 console applications #1990

nkrepo opened this issue Dec 2, 2021 · 1 comment

Comments

@nkrepo
Copy link

nkrepo commented Dec 2, 2021

"OpenSSH for Windows" version
8.6.0.0

Server OperatingSystem
OS Name Microsoft Windows 11 Pro
Version 10.0.22000 Build 22000

Client OperatingSystem
OS Name Microsoft Windows 11 Pro
Version 10.0.22000 Build 22000

What is failing
Mouse events in native Win32 console applications
(far manager, micro, e.t.c)

Expected output
Mouse events send over ssh to the Win32 console application

Actual output
No mouse events pass-through

@maertendMSFT maertendMSFT transferred this issue from PowerShell/openssh-portable Sep 19, 2022
@o-sdn-o
Copy link

o-sdn-o commented Dec 2, 2023

There is a workaround for this issue. You can use vtm to get full functionality of the Win32 Console Subsystem (including truecolor, native mouse and keyboard support) on remote Windows via OpenSSH.

For example:

  • Remote host (SSH server @win8host)
    • Windows 8 (yep, it works with it) with running OpenSSH Server
    • Place vtm.exe somewhere (e.g. C:\Program Files\vtm)
    • Make sure that the user you will be connecting to has permission to access via SSH (e.g. Administrators membership)
    • Add the location of vtm.exe to PATH environment variable (if you want to avoid vtm's full path typing)
  • Local host (SSH client)
    • any Terminal
    • OpenSSH Client installed
    • Add the location of vtm binary to PATH (to simplify access to)

Type the following command in terminal on local Windows host:

vtm ssh user@win8host vtm

And you will get a remote text console with true colors, native mouse and keyboard support, as if running locally:

output1.mp4

If you want to remotely run a standalone Win32 console application, that's also not a problem.

For example, launching a standalone instance of Far Manager via SSH:

vtm ssh user@win8 vtm -r term far

or (if you don't like extra UI)

vtm ssh user@win8 vtm -r headless far
output3.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants