Open dsseng opened 3 years ago
I can reproduce with gnome terminal, but not with alacrity.
I think this subtraction https://github.com/crossterm-rs/crossterm/blob/master/src/event/sys/unix/parse.rs#L355 is not mentioned by the sgr extension.
wezterm for example doesn't appear to do it
But the spec says http://www.xfree86.org/current/ctlseqs.html#Mouse%20Tracking
The upper left character position on the terminal is denoted as 1,1.
So maybe gnome-terminal is wrong here by sending 0
This issue has some insight https://gitlab.gnome.org/GNOME/vte/-/issues/71
So from what I can tell 0 is a valid number, but its interpretation its not clear, it can be either scroll 1 or noop.
I think crossterm should just pick one behavior (maybe just consider 0 as a scroll by 1 request)
Describe the bug Crash when scrolling happens on the left of the terminal window. See video
To Reproduce Steps to reproduce the behavior:
event-read
exampleExpected behavior No panic when cursor is leftmost
OS
Terminal/Console