+ tmp->win = menu_win = derwin(win, 8, 68, 3, 1);
+ keypad(menu_win, TRUE);
+ set_menu_mark(tmp->menu, " > ");
+ set_menu_win(tmp->menu, menu_win);
+ set_menu_sub(tmp->menu, derwin(menu_win, 8, 68, 3, 1));
+
+ box(menu_win, 0, 0);
+ mvwaddch(menu_win, 2, 0, ACS_LTEE);
+ mvwhline(menu_win, 2, 1, ACS_HLINE, 68);
+ mvwaddch(menu_win, 2, 68, ACS_RTEE);
+ return tmp;
+}
+
+void free_mymenu(MyMENU *menu)
+{
+ delwin(menu->win);
+ free_item(menu->items[0]);
+ free_item(menu->items[1]);
+ free_item(menu->items[2]);
+ free_item(menu->items[3]);
+ free_menu(menu->menu);
+ free(menu);