From: Jeremy Kerr Date: Mon, 3 Mar 2014 10:15:31 +0000 (+0800) Subject: ui/ncurses: Ensure that the selected menu item is visible X-Git-Tag: v1.0.0~224 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=67d0ca0764e5ab9a0d0e5baa5bf062d0ac5c8596;hp=67d0ca0764e5ab9a0d0e5baa5bf062d0ac5c8596;p=petitboot ui/ncurses: Ensure that the selected menu item is visible When adding new items to the petitboot menu, we need to ensure that the scroll position of the menu includes the currently-selected item. This change adds a call to set_top_row, calculated from the selected item index, and the number of rows in the menu. Signed-off-by: Jeremy Kerr ---