avose / GLShell

OpenGL Terminal
GNU Lesser General Public License v2.1
3 stars 0 forks source link

Terminal Scrolling with MouseWheel #29

Open avose opened 1 year ago

avose commented 1 year ago

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.

avose commented 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.