last menu help message. */
static int menu_help_paneno, menu_help_itemno;
+static int menu_x, menu_y;
+
typedef struct tty_menu_struct
{
int count;
}
else
{
- mx = x;
- my = y;
+ mx = menu_x;
+ my = menu_y;
}
#else
- /* FIXME: need to set mx and my from cursor movement commands. */
- mx = x;
- my = y;
+ mx = menu_x;
+ my = menu_y;
#endif
menu_help_message = NULL;
*y += dy;
if (dx != 0 || dy != 0)
sf->mouse_moved = 1;
+ menu_x = *x;
+ menu_y = *y;
Sleep (300);
return st;
#endif