X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-scr.h;h=3d7c4ebcd919207c12b8607d3fd0e478fe2e636c;hp=9f80e65c1462727718d03a4b1456110a14f0e332;hb=9330aba60a05a8d9889dab42bc92b9ebbc55941b;hpb=089d0a6eb769d531129a7cd1061493a1a24b4bef diff --git a/ui/ncurses/nc-scr.h b/ui/ncurses/nc-scr.h index 9f80e65..3d7c4eb 100644 --- a/ui/ncurses/nc-scr.h +++ b/ui/ncurses/nc-scr.h @@ -40,16 +40,16 @@ enum pb_nc_sig { - pb_cui_sig = 111, - pb_pmenu_sig = 222, - pb_item_sig = 333, - pb_boot_editor_sig = 444, - pb_removed_sig = -555, + pb_cui_sig = 111, + pb_pmenu_sig = 222, + pb_item_sig = 333, + pb_boot_editor_sig = 444, + pb_text_screen_sig = 555, + pb_config_screen_sig = 666, + pb_lang_screen_sig = 777, + pb_removed_sig = -888, }; -void nc_start(void); -void nc_atexit(void); - static inline void nc_flush_keys(void) { while (getch() != ERR) @@ -67,6 +67,7 @@ enum nc_scr_pos { nc_scr_pos_status = 1, nc_scr_frame_lines = 5, + nc_scr_frame_cols = 1, }; struct nc_frame { @@ -98,4 +99,7 @@ void nc_scr_status_free(struct nc_scr *scr); void nc_scr_status_printf(struct nc_scr *scr, const char *format, ...); void nc_scr_frame_draw(struct nc_scr *scr); +int nc_scr_post(struct nc_scr *src); +int nc_scr_unpost(struct nc_scr *src); + #endif