Open avose opened 1 year ago
It looks like xterm supports some escape sequences to let applications control if they want the mouse wheel scroll events, or if the terminal should take them and scroll back up in the history. I suppose long term I should look into how / if this is working like I think it is.
For example, with the "linux" terminal type, I think the scrolling scrolls the terminal history. With "xterm", I think emacs will grab the scroll events.
I suppose I should try to emulate xterm here.
Right now, the mouse wheel scrolls the cursor location up or down as if the up or down arrow keys are pressed. This behavior should be enhanced to also scroll the scrollbar if some modifier is pressed, say control or shift.