Skip to content

Conversation

@timmaffett
Copy link

This PR provides a wrapper around stdin on the Windows platform so that it provides standard ANSI CSI sequences for mouse and keyboard events.

As if it were a Unix terminal stdin for which these ANSI commands had been sent to the terminal's stdout:
ESC [ ? 1000 h - Send Mouse X & Y on button press and release
ESC [ ? 1002 h - Use Cell Motion Mouse Tracking
ESC [ ? 1003 h - Enable all motion mouse tracking
ESC [ ? 1006 h - Enable SGR mouse mode

@timmaffett
Copy link
Author

-I also made changes to the CHANGELOG.md to get rid of the errors/warnings in the editor

-and I made changes to allow existing logging in other classes and for now that is still in the code as I work on this.

@timmaffett timmaffett marked this pull request as draft October 1, 2025 22:42
@timmaffett timmaffett changed the title Implements a wrapper around stdin on the Windows platform to provide standard ANSI events Implements a wrapper around stdin on the Windows platform to provide standard ANSI events. Fixes #5 Oct 1, 2025
@Norbert515
Copy link
Owner

FYI not all tests are expected to work right now, bunch of them are still from me experimenting. Will have to clean those up in the future, so don't worry too much about those for now.

@timmaffett
Copy link
Author

I have the mouse events working well as well as buttons and mouse wheel working fairly well.
I have some of the keys working, I will need to continue on it tomorrow. I will change this PR from draft and let you know when it's ready.

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

Successfully merging this pull request may close these issues.

2 participants