Attempt to solve bug #17497 by minimizing cursor motion during TTY menu updates.
authorEli Zaretskii <eliz@gnu.org>
Wed, 4 Jun 2014 09:16:46 +0000 (12:16 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 4 Jun 2014 09:16:46 +0000 (12:16 +0300)
commitd13adf6ddc858a988f88233fe6d73a8ca4a87cf7
treef7ded9b13a8785e0c643bb3cd6a7cd893bfede25
parent4a52a98a9a5a49719da0a44d5ab1ddfde9a2aedc
Attempt to solve bug #17497 by minimizing cursor motion during TTY menu updates.

 src/term.c (tty_menu_display): Don't position cursor here.  Instead,
 pass the cursor coordinates to update_frame_with_menu.
 (tty_menu_activate): Send the hide cursor command only once in an
 iteration through the outer 'while' loop.
 src/dispnew.c (update_frame_1): Accept an additional argument
 SET_CURSOR_P, and position the cursor at the end of the frame
 update only if that argument is non-zero.  All callers changed to
 provide the additional argument as non-zero, except for
 update_frame_with_menu.
 (update_frame_with_menu): Accept 2 additional arguments ROW and
 COL; if they are non-negative, instruct update_frame_1 not to
 position the cursor, and instead position it according to ROW and
 COL.
 src/dispextern.h (update_frame_with_menu): Update prototype.
src/ChangeLog
src/dispextern.h
src/dispnew.c
src/term.c