-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EventStream produces sequence of KeyEvents instead of mouse ScrollUp/ScrollDown #668
Comments
You have executed 'EnableMouseCapture' and raw modes? |
@TimonPost yes, at the beginning I do this: terminal::enable_raw_mode().unwrap();
execute!(
self.screen,
terminal::EnterAlternateScreen,
crossterm::event::EnableMouseCapture,
).unwrap();
|
That is odd. Will have to investigate it a bit. |
Ah, I am afraid using gestures and two fingers is not yet supported. I'll move his issue to: #685 |
@TimonPost hmm, gesture is in fact supported because it does recognize it as |
Describe the bug
I'm using EventStream like this:
In
process_terminal_event
I log all incoming events to a file. If I do some continuous scroll up/down with two finger gesture on MacOS I get sequence of Key events (that btw looks like some mouse sequence^[[<65;118;23M
) in the middle of ScrollDown events.Observation: this escape sequence has x, y coordination off by one compared to ScrollDown events.
To Reproduce
See above.
Expected behavior
Raw escape sequence should not appear in EventStream.
OS
MacOS Catalina 10.15.5
Terminal/Console
The text was updated successfully, but these errors were encountered: