Fix CUI scroll
[petitboot] / ui / ncurses / nc-cui.c
index 47c09e2e73e1326d43d39c354af81135bc9635b4..83e29392249cee84c1cef3f19f0fdbd80bcb60c7 100644 (file)
@@ -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)