int main(){ printf("Lcd driver and lib demo\n"); display = get_display(); if (display == NULL) { printf("Failed to get display\n"); return -1; } disable_waiting_for_enter(); build_vars(); intro_animation(); char key = 0; int position = 0; while(running){ position = menu_selection(position); } clear_screen(); restore_terminal_settings(); release_display(display); }
void User_Interface::run_menu() { int choice = 0; do { choice = menu_selection(); handle_selection(choice); } while (choice != 8); }