+int preguntar_id(WINDOW *win, EMUFS *fp)
+{
+ int n=-1, j=0;
+ t_Form *form = form_crear(win);
+ form_agregar_widget(form, INPUT, "ID a buscar", 8, "");
+
+ do {
+ if (j != 0) {
+ curs_set(0);
+ wattron(win, COLOR_PAIR(COLOR_YELLOW));
+ wattron(win, A_BOLD);
+ mvwaddstr(win, 2, 1, "Registro no encontrado!!");
+ wattroff(win, A_BOLD);
+ wattroff(win, COLOR_PAIR(COLOR_YELLOW));
+ wrefresh(win);
+ getch();
+ werase(win);
+ box(win, 0, 0);
+ }
+ form_ejecutar(form, 1,1);
+
+ n = form_obtener_valor_int(form, "ID a buscar");
+ j = 1;
+ } while (emufs_idx_existe_id(fp, n) != 0);
+
+ form_destruir(form);
+ return n;
+}