diff options
| author | Eli Zaretskii | 2013-10-14 18:37:12 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-10-14 18:37:12 +0300 |
| commit | ccd4a7833f341e2c22d6933357282954af6a57b2 (patch) | |
| tree | e28e73f9b0e1b85ee9d81adb79d7389c04e4473f /src/data.c | |
| parent | 77e3b1b7095b3376dbddd22cbca4827b797767c0 (diff) | |
| download | emacs-ccd4a7833f341e2c22d6933357282954af6a57b2.tar.gz emacs-ccd4a7833f341e2c22d6933357282954af6a57b2.zip | |
Implement scrolling of TTY menus when the screen is too short.
src/term.c (tty_menu_display): Accept an additional argument, the
menu item from which to start displaying the menu. Account for
the value of Y when limiting the menu to the number of available
screen lines.
(mi_result): New enumeration.
(read_menu_input): Return enumerated value. When the y coordinate
hits min_y or max_y, return scroll indication instead of wrapping
around the menu.
(tty_menu_activate): Handle the scrolling indications from
read_menu_input. Compute the first menu item to display and pass
it to tty_menu_display.
lisp/menu-bar.el (tty-menu-navigation-map): Bind shifted mouse clicks
to commands that scroll the menu.
Diffstat (limited to 'src/data.c')
0 files changed, 0 insertions, 0 deletions