]> git.llucax.com Git - z.facultad/75.06/emufs.git/blobdiff - emufs_gui/gui.c
Se eliminan warnings. Solo quedan los del truncate() que no puedo entender por que...
[z.facultad/75.06/emufs.git] / emufs_gui / gui.c
index 35ebc98ca5b37e2d61f9dfcc431896729eb438c6..95c5fee9a9349be7a73e947ef7ceb8ae02457a36 100644 (file)
@@ -70,7 +70,6 @@ t_Param param_ok(int argc, char *argv[])
                                                return BLOQUE_NO_DEFINIDO;
                                        parametros.tipo_arch_art = n;
                                        parametros.tam_bloque_art = atoi(argv[i+2]);
-                                       fprintf(stderr, "%d\n", parametros.tam_bloque_art);
                                        if (parametros.tam_bloque_art <= 0) return NULL_BLOCK_FOUND;
                                        parametros.xml_art = i;
                                } else {
@@ -233,7 +232,15 @@ int main(int argc, char *argv[])
                        break;
                        case 2:
                                dialog = derwin(stdscr, LINES-4, COLS-2, 2, 1);
-                               ver_registros(dialog, COLS-2, LINES-4);
+                               ver_registros(dialog, COLS-2, LINES-4, 0);
+                               werase(dialog);
+                               wrefresh(dialog);
+                               delwin(dialog);
+                               refresh();
+                       break;
+                       case 3:
+                               dialog = derwin(stdscr, LINES-4, COLS-2, 2, 1);
+                               ver_registros(dialog, COLS-2, LINES-4, 1);
                                werase(dialog);
                                wrefresh(dialog);
                                delwin(dialog);