maded2 / plotng

PlotNG - plotting utility for Chia.Net
Apache License 2.0
128 stars 24 forks source link

Attempts to fix an issue where mouse input under PuTTy is not recognized #81

Closed squizzling closed 3 years ago

squizzling commented 3 years ago

tcell.Screen exposes an EnableMouse with the option to specify which type of mouse events to capture (click, drag, all). Unfortunately putty doesn't currently support "all", which is the default, so we need to specify either click or drag.

This problem is further compounded by tview.Application not exposing the underlying Screen directly. It does however use a Screen if we provide it; allowing us to create one, configure the mouse, and then use it. We don't call Application.EnableMouse because that will override the setting we've used.

This is probably going to cause a conflict in the README.md of #79, but I'll clean it up after this or that is merged).

Fixes #77

maded2 commented 3 years ago

thanks