#ifndef TUI_H #define TUI_H #include #include #include #include #include #include #include #include #include #include #include #define WIDTH 76 #define HEIGHT 19 #define MSG_COLOR 1 #define ICON_COLOR 2 #define CHECKBOX_STATE(flags, opt) checkrain_option_enabled(flags, opt) ? '*' : ' ' typedef enum tui_screens { ERROR_SCREEN = -1, EXIT_SCREEN = 0, MAIN_SCREEN = 1, OPTIONS_SCREEN = 2, ENTER_DFU_SCREEN = 3, JAILBREAKING_SCREEN = 4, ENTER_RECOVERY_SCREEN = 5 } tui_screen_t; typedef struct bitfield_checkbox_info { checkrain_option_p flags_p; checkrain_option_t opt; } tui_bit_info_t; tui_screen_t tui_screen_main(); tui_screen_t tui_screen_options(); tui_screen_t tui_screen_enter_recovery(); tui_screen_t tui_screen_enter_dfu(); tui_screen_t tui_screen_jailbreak(); int redraw_screen(); #endif