Implement scrolling of TTY menus when the screen is too short.
authorEli Zaretskii <eliz@gnu.org>
Mon, 14 Oct 2013 15:37:12 +0000 (18:37 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 14 Oct 2013 15:37:12 +0000 (18:37 +0300)
commitccd4a7833f341e2c22d6933357282954af6a57b2
treee28e73f9b0e1b85ee9d81adb79d7389c04e4473f
parent77e3b1b7095b3376dbddd22cbca4827b797767c0
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.
lisp/ChangeLog
lisp/menu-bar.el
src/ChangeLog
src/term.c