Gui.cs: Mouse does not work in Windows Terminal

Created on 28 Feb 2020  Â·  8Comments  Â·  Source: migueldeicaza/gui.cs

When executing the example projects included in the repo on PowerShell or cmd in the Windows Terminal (this, here is the code) some anomalies happen:

  • mouse is not tracked
  • mouse click on menus does not work
  • the element of the ListView (?) overflow

image

OS: Windows 10 1909
Terminal.Gui version: 0.24.0 (dev)

bug

Most helpful comment

Until this is fixed in Windows Terminal, there's nothing we can do about it.

For now I vote we do NOT make this a ship-blocker for 1.0.

I'm removing the 1.0 label. If you disagree please reply with why.

All 8 comments

I already checked and it's a very odd behavior indeed

Same behavior when running the sample inside WSL inside Windows Terminal:
image

However, the thumb in the vertical scroll bar is correctly rendered (whereas it is not in a standard command prompt):
image

Well, that may be a problem with Consolas (missing support for fallback characters?); once I change my command prompt font from Consolas to Fira Code, everything is fine:
image

Mouse support isn't supported in Windows Terminal but it's being worked on - confirmed:

https://twitter.com/cinnamon_msft/status/1237253970759782401?s=19

Confirmed mouse is still not working in Windows Terminal 1.0 or Windows Terminal (Preview) Version: 1.0.1402.0.

This really is a setback.

This is the Windows Terminal bug, for clarity: https://github.com/microsoft/terminal/issues/376

Until this is fixed in Windows Terminal, there's nothing we can do about it.

For now I vote we do NOT make this a ship-blocker for 1.0.

I'm removing the 1.0 label. If you disagree please reply with why.

Was this page helpful?
0 / 5 - 0 ratings