Skip to content

mouse support not working in windows #1232

Open
@EricBalingit

Description

@EricBalingit

Hi,

I'm not having any luck getting mouse to work with mouse_support=True. Tried manual enable application.output.enable_mouse_support() but no errors are thrown. Still finding my way around the lib, but looking to log event types and see what comes through.

So far on:
Windows 10 pro Version 10.0.19041, 64 bit
Windows 10 home Version 10.0.18363, 64 bit

I do not have access to a system where it does work for me, so far, only the above. And I haven't tried using kernel32 directly.

Interestingly mouse works fine through win32console, but both seem to be using windows api, so not sure what gives. I've been comparing libs and looked at https://github.com/peterbrittain/asciimatics, but I really like your layout engine and want to use pt.

Also worth noting, results are same for pt vs asciimatics ( which uses win32console, though I don't know if this makes any difference implementation-wise vs kernel32 ) in cmd.exe as well as powershell - pt no mouse, asciim works, but in the new Windows Terminal, neither work, but that's not surprising really, it's still pretty new.

I'll keep you posted, and please ask if there's anything I can do to help you get this sorted. :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions