summaryrefslogtreecommitdiffstats
path: root/ui/ncurses
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-07-09 10:40:44 -0700
committerGeoff Levand <geoffrey.levand@am.sony.com>2009-07-09 10:40:44 -0700
commitc10b23bce758df60e906faaf36764e38480c5174 (patch)
tree7606ce2803aa605163a166b041900000dac433a5 /ui/ncurses
parent073beb0e626616ef6234dbb0eee24930517c61a9 (diff)
downloadtalos-petitboot-c10b23bce758df60e906faaf36764e38480c5174.tar.gz
talos-petitboot-c10b23bce758df60e906faaf36764e38480c5174.zip
Fix CUI scroll
A call to pos_menu_cursor() is needed when items are added to menu. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Diffstat (limited to 'ui/ncurses')
-rw-r--r--ui/ncurses/nc-cui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index 47c09e2..83e2939 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -366,6 +366,9 @@ static int cui_device_add(struct device *dev, void *arg)
item_count(cui->main->ncm) + 1);
}
+ /* FIXME: need to make item visible somehow */
+ menu_driver(cui->main->ncm, REQ_SCR_UPAGE);
+ menu_driver(cui->main->ncm, REQ_SCR_DPAGE);
set_current_item(cui->main->ncm, selected);
if (cui->current == &cui->main->scr)
OpenPOWER on IntegriCloud