Skip to content

Application cursor key mode for mouse wheel

By stevenlu... on May 16, 2013 17:28 (imported from Google Code)


In Terminal.app with MouseTerm and with gnome-terminal, the mouse wheel will send scroll up/down key codes to applications that have enabled application key mode.

While mouse wheel handling works in programs that do process raw mouse input such as vim, programs like less which are not mouse-aware do not respond to the mouse.

If the terminal sends the application key mode escape codes corresponding to the mouse when the program requests the mode (and they will generally do so when in a situation that is often appropriate for mouse control) then we can scroll them using the mouse.