zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.84k stars 1.17k forks source link

Mouse does not work on Windows #2149

Open alterae opened 3 years ago

alterae commented 3 years ago

Description of the problem or steps to reproduce

Despite having mouse support enabled in Micro's settings, I cannot use the mouse to reposition the cursor or do other actions requiring the mouse. This does not seem to be an issue with a specific terminal emulator, as it occurs in every emulator I have tested. Additionally, the Linux version of Micro (running on wsl) works completely fine in all emulators I tested.

To reproduce:

Specifications

Commit hash: cfcb2e45 OS: Windows 10 Terminal: Tested in Git Bash, PowerShell, and Fish on WSL using the Terminus, Hyper, Windows Terminal, and Alacritty terminal emulators.

Attached table of where mouse support does and does not work: image

Prince-Stolas commented 3 years ago

I have the same problem D:

KaranKad commented 3 years ago

I think it's terminal specific issue I tested micro using Windows Terminal, Default PowerShell 5 and Core Terminal and Default CMD Terminal and mouse works as expected. Note that mouse support for Windows Terminal was added in v1.9.1942.0 I tested this in Alacritty and Tabby (Terminus) and mouse does not work.

jgod commented 2 years ago

Just tested. Works on cmd.exe, doesn't work on Windows Terminal (1.11.2921.0)

AlanCristhian commented 2 years ago

It works with git shell. Git shell comes with Git Bash, but the installer doesn't provide an shortcut.

In my computer git shell is on C:\Program Files\Git\bin\sh.exe. So I create my own shortcut file:

  1. Go to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Git
  2. Copy and paste one of the shortcut files in that folder.
  3. Rename the copy as "Git Shell".
  4. Rigth click on it and select properties.
  5. Go to shortcut tab.
  6. On target field write: "C:\Program Files\Git\bin\sh.exe"
  7. On Start in field write: %HOMEDRIVE%%HOMEPATH%